wait_for_event
Waits for the next event on a specific Zhook WebSocket connection and returns the full payload immediately, with a 60-second timeout.
Instructions
Connects to the Zhook WebSocket and waits for the NEXT event to arrive on a specific hook. Returns the full event payload immediately. TIMEOUT is 60 seconds.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hookId | Yes | The hook ID to watch | |
| timeoutSeconds | No | How long to wait before giving up |