compare_branches
Compare two branches to list files that differ, including added/removed line counts. Omit base branch to compare against the default branch.
Instructions
Compare two branches and list files that differ between them. Returns changed files with added/removed line counts. If base is omitted, compares against the default branch. For a detailed line-by-line diff, use diff_commits instead.
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>",
"project": "<project>",
"compare": "<compare>"
},
"name": "compare_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch (default branch if omitted) | |
| owner | Yes | Project owner alias | |
| compare | Yes | Branch to compare | |
| project | Yes | Project alias |