list-branches
Retrieve and paginate branches for a Bitbucket repository by specifying its slug, with optional workspace and page controls to browse repository branch data.
Instructions
List branches for 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": {
"repo_slug": "<repo_slug>"
},
"name": "list-branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number or opaque next page URL returned by Bitbucket pagination | |
| pagelen | No | Number of items per page (default: 10, min: 10, max: 100) | |
| repo_slug | Yes | Repository slug/name | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. |