events
Wait for events from prompted sessions and receive them with session and agent identifiers. Optionally batch events within a coalescing window to reduce overhead.
Instructions
Block until any prompted session produces events. Returns events stamped with sessionId and agentId. Supports optional Nagle-style coalescing to batch events across sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutMs | No | Max wait time in ms. Returns empty on timeout. | |
| nagleMs | No | Coalescing window in ms. Batches events arriving within this window. Default: 0 (immediate). |