GitHub commits and comparisons
gh_commitsList commits (of a branch, or touching a path), show one commit with its changes (sha), or compare two branches, tags or commits (base and head) with the changed files and their diffs.
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>"
},
"name": "gh_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | ||
| base | No | ||
| head | No | ||
| path | No | ||
| repo | Yes | owner/name, like shopwhizzy/client-shop (or a GitHub address). | |
| limit | No | ||
| branch | No |