manage_refs
Manage branches and tags in Bitbucket repositories: list, create, or delete branches and tags with a single tool.
Instructions
Unified tool for listing, creating, and deleting branches and tags
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": {
"action": "<action>",
"workspace": "<workspace>",
"repo_slug": "<repo_slug>"
},
"name": "manage_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Branch or tag name (required for create/delete) | |
| page | No | Page number (for list) | |
| sort | No | Sort field (for list-branches) | |
| query | No | Filter query (for list-branches) | |
| action | Yes | Action to perform: 'list-branches', 'create-branch', 'delete-branch', 'list-tags', 'create-tag' | |
| target | No | Target commit hash (required for create-tag) | |
| pagelen | No | Results per page (for list) | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Workspace slug |