Wait for the next event
wait_for_eventPause execution until a matching live event arrives or the timeout expires. React in real time by waiting for events like follows, subs, or raids from a specific platform.
Instructions
Block until the next matching live event arrives, or until the timeout. Use it to react in real time — e.g. wait for the next follower, then greet them by name. Returns the event, or a timedOut result if none arrived in time.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_for_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only resolve on events matching this type or alert name, e.g. "follow", "sub", "raid", "bits". | |
| origin | No | Only resolve on this origin platform, e.g. "twitch". | |
| timeout_seconds | No | How long to wait before giving up. Default 30, max 300. |