create_branch
Create a new branch from a specified ref, with a safety dry-run mode to preview before execution.
Instructions
Create a new branch from a ref. dry_run=true by default.
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_id": "<project_id>",
"name": "<name>",
"ref": "<ref>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| name | Yes | New branch name | |
| ref | Yes | Source ref (branch, tag, or commit SHA) | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |