manage_branches
Create or delete branches in a repository. Prevents deletion of the default branch.
Instructions
Manage branches in a repository. Actions: "create" (create a new branch), "delete" (delete a branch). Refuses to delete the default branch.
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": {
"action": "<action>",
"repository": "<repository>",
"branch": "<branch>"
},
"name": "manage_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to perform. | |
| branch | Yes | Branch name. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| repository | Yes | Repository slug. | |
| startPoint | No | Ref to branch from (create only). |