create_branch
Create a new branch in a BitBucket repository from a specified source branch, defaulting to 'development'. Optionally, specify repository and workspace.
Instructions
Create a new branch in a BitBucket repository.
Use this tool when the user wants to create a new branch. By default, branches are created from the 'development' branch.
Args: branch_name: Name for the new branch. source_branch: Source branch to create from (default: 'development'). repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace.
Returns: JSON object with the created branch details.
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": {
"branch_name": "<branch_name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | ||
| repository | No | ||
| branch_name | Yes | ||
| source_branch | No | development |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |