GitHub pull request
github_prRead a GitHub pull request to get branches, stats, mergeability, and optional changed files with patches for review or triage.
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. Returns PR fields {number, title, state, draft, merged, author, base, head, body, additions, deletions, changed_files, mergeable, created_at, updated_at, merged_at, html_url}; adds {files[{filename, status, additions, deletions, changes, patch}], files_truncated} when include_files is true.
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 |