branch_switch
Switch to a local branch only when the working tree and index are clean, preventing loss of uncommitted changes.
Instructions
Switch to a valid local branch only when the worktree and index are clean.
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": {
"repository_path": "<repository_path>",
"branch_name": "<branch_name>"
},
"name": "branch_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_name | Yes | ||
| repository_path | Yes | ||
| declaration_path | No | architecture.yaml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||