compare_commits
Compare two commits or branches in a GitHub repository to identify differences in changes, files, or commits before reviewing or merging.
Instructions
Compare two commits or branches
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_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base branch or commit SHA | |
| head | Yes | Head branch or commit SHA | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner |