github_get_pull_diff
Fetch a GitHub pull request's diff or patch in read-only form, truncated to 30,000 characters, to review code changes without modifying repository data.
Instructions
读取 Pull Request 的 diff/patch(只读,截断到 30000 字符)。
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>"
},
"name": "github_get_pull_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库所有者(用户或组织) | |
| number | No |