create_branch
Create a new branch in a repository, optionally from a specified source branch, to isolate changes for development or feature work.
Instructions
Create a new branch in a repository.
Args: repo_id: Repository ID. name: Branch name. source_branch_id: Branch to fork from. If empty, forks from the repo's 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": {
"repo_id": "<repo_id>",
"name": "<name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | ||
| name | Yes | ||
| source_branch_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |