List branches
bb_list_branchesLists repository branches and flags the default branch, with an optional branch-name filter for targeted results.
Instructions
List branches of a repository with default-branch detection (isDefault flag). Optional branch name filter (server-side on Server/DC, client-side on Cloud).
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>"
},
"name": "bb_list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | One-based page number (Cloud only; from nextPageStart of the previous call). Ignored on Server/DC. | |
| limit | No | Page size (1-1000). | |
| start | No | Zero-based page offset (Server/DC). | |
| filter | No | Branch name filter, e.g. 'feature/'. | |
| projectKey | Yes | Project key (on Cloud: workspace slug). | |
| repositorySlug | Yes | Repository slug. |