switch_thread
Binds a worktree to an open thread by case ID so agents can resume work, or omits the ID to unbind and pause; per-worktree bindings prevent concurrent agents from overwriting each other.
Instructions
Bind this worktree to an existing open thread (case_id), or pause: case_id omitted unbinds the worktree. Threads are per repository; the binding is per worktree, so two agents in two worktrees never overwrite each other. From a chat client the binding may point at a thread of any repository.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "switch_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | No | ||
| case_id | No | ||
| worktree | No |