Get Pull Request Diff Tool
get_pull_request_diff_toolRetrieve the unified diff for a GitHub pull request to review code changes before merging. Provide the repository and pull request number to inspect exact additions and deletions.
Instructions
Get the unified diff for a GitHub pull request.
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": {
"repo": "<repo>",
"pull_number": "<pull_number>"
},
"name": "get_pull_request_diff_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | No | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
| pull_number | Yes | Pull request number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||