github_get_pull_request_files
List the files changed by a pull request and return their diffs, with long patches truncated and flagged via patch_truncated.
Instructions
List the files a pull request changes, with their diff (long diffs are cut, patch_truncated).
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": {
"number": "<number>"
},
"name": "github_get_pull_request_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository as 'owner/name'. Defaults to GITHUB_MCP_DEFAULT_REPO when omitted. | |
| limit | No | ||
| number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| returned | Yes | ||
| truncated | Yes |