bitbucket_create_branch
Creates a new branch in a Bitbucket repository from a specified source branch. Provide workspace, repository, and branch name to get branch details.
Instructions
Create a new branch in a repository.
Args: workspace: Workspace name or project key. repository: Repository name. branch_name: New branch name. source_branch: Source branch to create from (default: main).
Returns: JSON string containing the created branch details.
Raises: ValueError: If the Bitbucket client is not configured or available.
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": {
"workspace": "<workspace>",
"repository": "<repository>",
"branch_name": "<branch_name>"
},
"name": "bitbucket_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| branch_name | Yes | New branch name | |
| source_branch | No | Source branch to create from | main |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |