git_branch
Checks out an existing branch or creates a new one in a local repository, so you can switch context or start isolated work.
Instructions
Checkout or create a branch in a local repo
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": {
"dir": "<dir>",
"name": "<name>"
},
"name": "git_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | ||
| name | Yes | ||
| create | No |