wait_thronglet
Waits for a coding-agent session to finish all running and queued turns, then returns the final turn result or error; returns session state after timeout.
Instructions
Waits until a session has no running or queued turn and returns the last turn's result: the same JSON as run_thronglet, or its error. With timeout_s elapsed returns {session_id, state, queued} instead. Idempotent: the result is stored with the session.
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": {
"session_id": "<session_id>"
},
"name": "wait_thronglet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | How long to wait in seconds; default from config (21600). Elapsed → the session state, not an error | |
| session_id | Yes | session_id from run_thronglet |