listBranches
Lists branches in a Bitbucket repository so you can inspect available branch names, filter by partial match, and page through results.
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": {
"repoSlug": "<repoSlug>"
},
"name": "listBranches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Fetch all pages (capped at 1000) | |
| page | No | Page number (1-based) | |
| filter | No | Filter branches by name (partial match) | |
| pagelen | No | Number of items per page | |
| repoSlug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace or project key (uses default if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |