git_checkout
Switch to an existing Git branch, or create and switch to a new branch, for safe branch management without force or discard modes.
Instructions
Switch to an existing Git branch, or create and switch to a new branch. Force/discard modes are intentionally not exposed.
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": "git_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| branch | Yes | ||
| create | No |