list_branches
Retrieve all branches from a Bitbucket Cloud repository, with options to filter, sort, and paginate results for efficient branch management.
Instructions
List all 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": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| q | No | Query string for filtering | |
| sort | No | Sort field | |
| page | No | Page number | |
| pagelen | No | Results per page |