create_branch
Create a new branch from a specified commit, branch, or tag in a Bitbucket Server repository.
Instructions
Create a new branch in a Bitbucket Server 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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"name": "<name>",
"startPoint": "<startPoint>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name for the new branch | |
| repoSlug | Yes | The repository slug | |
| projectKey | Yes | The project key (e.g., PROJ) | |
| startPoint | Yes | The commit, branch, or tag to create the branch from (e.g., refs/heads/main) |