Git checkout
git_checkoutSwitch to or create a git branch (with -b) in a repository, refusing to operate if the working tree has uncommitted changes.
Instructions
Checkout branch (create with -b). Refuses on dirty tree.
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": {
"path": "<path>",
"branch": "<branch>"
},
"name": "git_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| create | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||