git_checkout
Switch to a Git branch, or restore a file to its last committed state, by providing branch name or file path.
Instructions
Switch to a branch, or restore a file to its last committed state.
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_or_file": "<branch_or_file>"
},
"name": "git_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_or_file | Yes | A branch name to switch to, or a file path to restore. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||