get_commit_diff
Fetch the raw diff of any GitHub commit by specifying owner, repo, and commit SHA or branch/tag ref. Directly inspect code changes for review or analysis.
Instructions
Get the raw diff of a Commit
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>",
"ref": "<ref>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The commit sha or branch/tag ref | |
| repo | Yes | ||
| owner | Yes |