Create Branch
bitbucket_create_branchCreate a new branch in a Bitbucket Data Center repository from a given branch, tag, or commit. Use this to start a feature or fix from an existing point in code.
Instructions
Create a new branch in a repository.
Creates a branch at the given start point (branch name, tag, or commit hash).
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": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>",
"name": "<name>",
"start_point": "<start_point>"
},
"name": "bitbucket_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New branch name (e.g. 'feature/my-branch') | |
| project_key | Yes | The project key | |
| start_point | Yes | Branch, tag, or commit hash to branch from (e.g. 'main', 'develop', or a commit SHA) | |
| repository_slug | Yes | The repository slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |