get_branches_route
List all branches for a given agent ID. Retrieve branch details, optionally including archived branches or commit divergence status.
Instructions
List Agent 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": {
"agent_id": "<agent_id>"
},
"name": "get_branches_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many results at most should be returned | |
| agent_id | Yes | The id of an agent. This is returned on agent creation. | |
| include_archived | No | Whether archived branches should be included | |
| include_commit_status | No | Whether to compute how far each branch has diverged from main (commits_ahead/commits_behind). This walks the version DAG of every branch, so it is slow on agents with long histories and is off by default, leaving those fields null. |