Compare two refs
compare_refsCompare two Git refs (tags, branches, or SHAs) in a public GitHub repository and view the raw commit diff between them.
Instructions
Show the raw commit diff between two Git refs (tags, branches, or SHAs) in a public GitHub repository, without categorization.
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>",
"base": "<base>",
"head": "<head>"
},
"name": "compare_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base ref, e.g. a tag name like 'v1.2.0' | |
| head | Yes | Head ref, e.g. 'main' or a newer tag | |
| repo | Yes | ||
| owner | Yes |