compare_commits
Lists changed files between base and head revisions (branches, tags, or hashes) with paginated file statistics. Use it to see which files differ before fetching line-level diffs.
Instructions
List changed files from base to head (git diff base head semantics).
Revisions can be branches, tags or hashes. Returns a complete page of file
statistics. Follow next_cursor for remaining files; cursor keeps its issued
filters and page size. Use get_commit_diff for actual changed lines.
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_slug": "<repo_slug>",
"base": "<base>",
"head": "<head>"
},
"name": "compare_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| head | Yes | ||
| path | No | ||
| limit | No | ||
| cursor | No | ||
| repo_slug | Yes |