ck_worktree_switch
Change the active session to a specified git worktree and update session metadata, keeping findings and audit trail accurate.
Instructions
Switch the current session to a different git worktree and update session metadata accordingly.
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": {
"worktree_path": "<worktree_path>"
},
"name": "ck_worktree_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Unique session identifier for correlating findings, proofs, budget, and audit trail. | |
| worktree_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| switched | No | ||
| worktree_path | No |