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
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. |