listBranches
List branches in a Bitbucket repository. Use query filters and pagination to find specific branches or navigate large repositories.
Instructions
List branches in a repository
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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>"
},
"name": "listBranches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Query string to filter branches | |
| all | No | When true (and no page is provided), automatically follows Bitbucket next links to return all items up to 1000. | |
| page | No | Bitbucket page number to fetch (1-based). | |
| pagelen | No | Number of items per page (Bitbucket pagelen). Defaults to 10 and caps at 100. | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Bitbucket workspace name |