bitbucket_branches
List, create, delete, and retrieve details for branches and tags in any Bitbucket repository.
Instructions
Manage Bitbucket branches and tags. Actions:
list_branches: List all branches in a repository
get_branch: Get details of a specific branch
create_branch: Create a new branch from a commit/ref
delete_branch: Delete a branch
list_tags: List all tags in a repository
get_tag: Get details of a specific tag
create_tag: Create a new tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| workspace | No | Workspace slug (uses BITBUCKET_WORKSPACE env if omitted) | |
| repo_slug | Yes | Repository slug | |
| branch_name | No | Branch name | |
| tag_name | No | Tag name | |
| target | No | Target commit hash or ref for create operations | |
| message | No | Tag message (for annotated tags) | |
| q | No | Query string to filter results | |
| sort | No | Sort field | |
| page | No | Page number for pagination | |
| pagelen | No | Results per page (default: 25, max 100) | |
| format | No | Output format: json (full), toon (compact tokens), compact (essential fields only) |