Get pull request diff
get_pr_diffFetch the raw unified diff of a GitHub pull request. Use offset and limit to page through large diffs.
Instructions
Fetch a raw unified diff. Use offset and limit to page through very large pull requests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "get_pr_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository name | |
| limit | No | Maximum diff lines to return (default 4000) | |
| owner | Yes | GitHub repository owner or organization | |
| offset | No | First diff line to return | |
| pull_number | Yes | Pull request number |