list_branches
Retrieve paginated branch records for a project, with optional filters for closed branches and favorites. Use to inspect branch IDs, names, and status.
Instructions
List the project's branches. Returns branch records ({ id, name, createdAt, closed, permanent, latestCheckpointId, user }). Paginates via limit + cursor (meta.nextCursor); set closed:true to include closed branches, favorite:true for your favourites. When NOT to use: to read the current branch (use vcs_status).
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": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max branches to return | |
| closed | No | Include closed branches | |
| cursor | No | Pagination cursor (a branch id from a previous meta.nextCursor) | |
| favorite | No | List only your favourite branches |