claude_wait
Block until async Claude Code tasks finish, then return all results in one call. Tasks keep running past timeouts; call again to keep waiting.
Instructions
Block until one or more async Claude Code tasks complete, then return all results. Pass every task_id you launched in ONE call. Let it run long past your client's backgrounding threshold (short timeouts are raised to a floor; finished tasks return instantly). A wait timeout does NOT kill tasks -- call claude_wait again to keep waiting.
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": {
"task_ids": "<task_ids>"
},
"name": "claude_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Max seconds to wait (default: 1800). Leave this alone unless you have a specific reason; values below the client backgrounding floor are raised to it. The task keeps running even if this times out. | |
| task_ids | Yes | List of task_ids to wait for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes |