get_pr_diff
Fetch a pull request's diff/patch with a configurable byte limit. Pass max_bytes=0 to learn total patch size without reading it, and see truncation info to know what was omitted.
Instructions
Fetches the diff/patch of a specific pull request, capped at max_bytes. bytes_total is the whole patch either way, so a truncated reply says what was left behind. See #314.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_bytes | No | Cap on the patch returned. Pass 0 to learn the size without reading the patch | |
| pr_number | Yes | ||
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| pr_number | Yes | ||
| truncated | Yes | ||
| bytes_total | Yes | ||
| bytes_returned | Yes |