git_switch
Switches to an existing branch or creates a new one from a given start point, without forcing changes or stashing work.
Instructions
Switch or create a branch without force or automatic stash.
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 |
|---|---|---|---|
| branch | Yes | ||
| create | No | ||
| start_point | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| changes | Yes | ||
| updates | No | ||
| conflicts | Yes | ||
| operation | Yes | ||
| head_after | Yes | ||
| head_before | Yes | ||
| process_ids | Yes | ||
| synchronization_error | No |