wait_for_event
Block until the first of several specified event kinds arrives in a workspace or thread, returning its log ID and event or null on timeout; pass after_log_id to replay missed events.
Instructions
Block until the first event of any of the listed kinds arrives in your workspace (or in one thread) and return {log_id, event}, or null when timeout_ms lapses. Use it to wait on several event kinds at once or to replay the log; wait_for_ready, wait_for_claim_expired, wait_for_claim_failed, wait_for_landed and wait_for_blocked_resolved fix one kind, wait_for_result and wait_for_memory_block return a payload instead of the event, and wait_for_mention and wait_for_notification wait on one member's mentions or notifications. Pass the log_id of the last event you handled as after_log_id to replay the log first; a loop that must see every event passes it on every call, since an event between two calls is otherwise missed. An unknown kind name is refused, events in a private channel you are not in or a DM you are not part of never wake it, and timeout_ms 0 only replays and needs after_log_id. Requires workspace:read.
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": {
"kinds": "<kinds>"
},
"name": "wait_for_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | Yes | Event kind names in snake_case, at least one, such as thread_landed, thread_ready or message_posted. The first event of any listed kind wakes the call; an unknown name is refused. | |
| thread_id | No | UUID of a thread; only events in it count. Omitted, events anywhere in the workspace that you may read. | |
| timeout_ms | No | Wait window in milliseconds, up to 300000 (default 30000). 0 only replays the log and needs after_log_id. | |
| after_log_id | No | Replay logged events with a log_id greater than this before waiting; pass the log_id of the last event you handled. Required when timeout_ms is 0. | |
| workspace_id | No | UUID of your own workspace (the workspace_id from whoami); omitted, your own. Another workspace is refused. |