branch_compare
Compare two Git branches structurally to identify added, modified, deleted, and renamed files along with diff stats, commits ahead/behind, and conflict files.
Instructions
Compare two git branches structurally: added, modified, deleted, renamed files. Shows per-file diff stats, commits ahead/behind, and conflict files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "branch_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch to compare from (default: main) | |
| compare | No | Branch to compare (default: current HEAD) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| stats | Yes | ||
| compare | Yes | ||
| commitsAhead | No | ||
| commitsBehind | No |