list_branches
Get a list of all branches in a given Bitbucket repository, including each branch's latest commit hash.
Instructions
List all branches in a repository. Returns branch names and latest commit hashes.
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 |
|---|---|---|---|
| repo_slug | Yes | The repository slug. | |
| workspace | No | The workspace slug. Optional if BITBUCKET_WORKSPACE env var is set. |