Get Branches
bitbucket_get_branchesList branches in a Bitbucket Data Center repository with their latest commit hash. Filter branches by name substring to locate specific ones and return results as markdown or JSON.
Instructions
List branches in a repository.
Returns branches with their latest commit hash. Use filter_text to search
for branches by name.
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": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>"
},
"name": "bitbucket_get_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (1-1000) | |
| start | No | Pagination start index | |
| order_by | No | ALPHABETICAL or MODIFICATION (default: MODIFICATION) | |
| filter_text | No | Filter branches by name (substring match) | |
| project_key | Yes | The project key | |
| repository_slug | Yes | The repository slug | |
| response_format | No | Output format: markdown (default) or json | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |