GitHub pull request
github_prFetch a GitHub pull request's branches, stats, mergeability, and optionally up to 100 changed files with patches. Set include_files=true to retrieve file diffs.
Instructions
Read one pull request with branches, stats, mergeability, and optional changed files. Set include_files=true to fetch up to 100 files with patches.
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>",
"number": "<number>"
},
"name": "github_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository in owner/name form | |
| fresh | No | Bypass the local cache | |
| number | Yes | Pull request number | |
| include_files | No | Include up to 100 changed files |