git-checkout
Switch to an existing branch or create and switch to a new branch in a Git repository.
Instructions
Switches to a branch or creates and switches to a new branch
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": {
"branchName": "<branchName>"
},
"name": "git-checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchName | Yes | Name of the branch to switch to | |
| createNew | No | Create a new branch if it doesn't exist (default: false) | |
| directory | No | The directory to run the command in (defaults to current working directory) |