wait_session
Blocks until a Claude Code session finishes or the timeout expires, returning its current status; if timedOut is true, call again to keep waiting.
Instructions
Block until a session stops working or timeoutMs passes (default and maximum: the server wait limit, 25000 unless configured). Returns the same view as get_session without the title and prompt. timedOut true means it is still working: call again. Use it after new_session, after send_followup returns started or handed, and after an answer.
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": {
"sessionId": "<sessionId>"
},
"name": "wait_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ||
| sessionId | Yes | ||
| timeoutMs | No |