create_branch
Create a new branch from an existing base branch, pointing to the same commit as the origin branch's HEAD. Verify existing branches with list_branches before creating.
Instructions
Create a new branch from an existing one. The new branch will point to the same commit as the origin branch's HEAD. Use list_branches to verify existing branches first.
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": {
"owner": "<owner>",
"project": "<project>",
"newBranch": "<newBranch>",
"originBranch": "<originBranch>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Project owner alias | |
| project | Yes | Project alias | |
| newBranch | Yes | Name for the new branch | |
| originBranch | Yes | Base branch to create from |