git_switch
Switch to an existing Git branch without overwriting local changes; use it to change branches when uncommitted work must be preserved.
Instructions
Switch to an existing branch. Git refuses if it would overwrite local changes.
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": {
"name": "<name>"
},
"name": "git_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| repo | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |