Wait for the next DualStream event
wait_for_eventBlock execution until a specified stream event arrives, using a cursor to avoid missing events. Enables live-reaction loops: wait for the next event, process it, then call again.
Instructions
Block until a control event arrives (or return immediately if matching events are already buffered past since_seq). WARNING: while this call waits, the user cannot interact with their assistant at all; the whole session is held. Only call it when the user has EXPLICITLY asked you to listen for events ("watch my stream", "wait for the next raid"). Never use it to wait for consent approval or as a convenience between steps; for those, tell the user what to do, end your turn, and retry when they respond. Live-reaction loop: pass the last_seq from your previous call, filter to ['event.stream_event'] to wake only on automation-matched platform events, act on the automation prompt in the payload, then call wait_for_event again. No timeout is applied by this server; the call resolves on the next event, or fails (retryable) if the DualStream connection drops while waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | Notification names to wake on, e.g. ["event.stream_event"]. Omit for any event. | |
| since_seq | Yes | Cursor from your previous wait_for_event/get_recent_events call (0 to start). |