create_branch
Create a new branch in a Bitbucket repository from an existing branch. Specify the repository slug and branch name; optionally set the source branch (defaults to main).
Instructions
Create a new branch in a repository
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": {
"repository": "<repository>",
"branch_name": "<branch_name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | Repository slug (e.g. "my-repo") | |
| branch_name | Yes | Name of the new branch | |
| source_branch | No | Branch to create from | main |