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.
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. |