Create branch
bb_create_branchCreate a Bitbucket branch from a specified branch, tag, or commit, defaulting to the repository's default branch when no start point is given.
Instructions
Create a branch in a repository, optionally from a specific start point (branch name, tag or commit). Refuses nothing server-side; default-branch protection applies only to deletion.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>",
"name": "<name>"
},
"name": "bb_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New branch name, e.g. 'feature/mcp-test'. | |
| projectKey | Yes | Project key (on Cloud: workspace slug). | |
| startPoint | No | Branch/tag/commit to start from (default: the repository's default branch). | |
| repositorySlug | Yes | Repository slug. |