git_create_branch
Create a new Git branch from a specified base branch, tag, or commit SHA; defaults to the current branch or commit when no base is provided.
Instructions
Creates a new branch from an optional base branch or commit
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_path": "<repo_path>",
"branch_name": "<branch_name>"
},
"name": "git_create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| base_branch | No | Branch, tag or commit SHA to create the branch from. Defaults to the current branch, or to the current commit when HEAD is detached | |
| branch_name | Yes |