gitCheckout
Switch to an existing branch or create a new branch from HEAD or a specified base. Branch creation is optional with a configurable base.
Instructions
Switch to a branch, or create and switch to a new branch. Use create: true to create from HEAD or a specified base.
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": {
"branch": "<branch>"
},
"name": "gitCheckout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch or commit to create from (only when create: true). Defaults to HEAD. | |
| branch | Yes | Branch name to switch to or create | |
| create | No | Create branch if it doesn't exist. Default: false. |