event_wait
Reads the event log with optional blocking long-poll to wait for new workspace, agent, or handoff events; use a cursor to paginate and timeout_seconds>0 to block until one arrives.
Instructions
Read the event log; optionally long-poll (0/omitted/null = snapshot; >0 blocks). Scoped like event_get (actors outside your comm scope omitted). Patterns: okto-nexus://reference/monitoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events per page (optional; default 100, clamped to the server maximum, default 1000). | |
| cursor | No | Pagination cursor: the last event_id you consumed; returns event_id > cursor (optional; omit/0 = from the beginning). | |
| stream | Yes | Event stream to read - one of: workspace, agent, handoff. message.created, the message.delivered/message.read receipts and artifact.created are on workspace. | |
| filters | No | Equality filters, AND-combined (optional). Keys: type, agent_id, task_id, handoff_id, trace_id. e.g. {"type":"message.created"}. | |
| profile | No | Response size profile - one of: default, summary, full (optional; summary trims per-call tokens). | |
| agent_id | Yes | Your agent_id; scopes per-event visibility (you only see events you may see). | |
| project_root | Yes | Absolute path to the project (defines the workspace scope). | |
| timeout_seconds | No | Long-poll bound in SECONDS (optional; default 0). 0/omitted/null = an immediate non-blocking snapshot; >0 OPTS IN to a BLOCKING long-poll until an event arrives or the timeout elapses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||