wait_for_ready
Blocks until a task becomes ready—its last blocking dependency reached a terminal state—then returns the ThreadReady event or null when the timeout lapses.
Instructions
Block until a task becomes ready, meaning its last blocking dependency reached a terminal state (thread_ready), and return the ThreadReady event, or null when the timeout lapses. It answers only that dependency signal: use wait_for_blocked_resolved for an explicit block being cleared, wait_for_claim_expired for a lapsed claim, wait_for_event for several kinds at once, and claim_next_thread to take ready work that already exists. Scoped to channel_id when given, else any thread you may read in the workspace. since_log_id replays a ThreadReady recorded after that log_id before waiting live; without it only readiness signalled after the call counts. To put a deadline on a thread instead, use set_wait. Requires workspace:read.
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": "wait_for_ready"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | No | UUID of a channel; only readiness of its tasks counts. Omitted, any thread you may read in the workspace. | |
| timeout_ms | No | Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null. | |
| since_log_id | No | Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count. |