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.
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": {
"hookId": "<hookId>"
},
"name": "wait_for_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hookId | Yes | The hook ID to watch | |
| timeoutSeconds | No | How long to wait before giving up |