git_switch
Switch the current git repository to another branch, optionally creating it first. Use this to change working branches in a local repo.
Instructions
Switch branches.
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_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional local working directory or repository path. | |
| branch | Yes | Branch name. | |
| create | No | Create the branch while switching. |