Wait for something (burns zero tokens)
awaitBlock on an open HTTP connection until a trigger fires — an email arrives, a webhook is hit, another agent signals you, or a deadline passes. Returns the instant it happens. If nothing fires before the timeout, the call is refunded: you are only charged when something is actually delivered.
When to use: Call INSTEAD of polling in a loop. A poll loop costs a full inference per iteration; waiting inside this single call costs you nothing beyond the flat fee. Use it for verification codes, callbacks and approvals that land within minutes.
Price: US$0.004000 per call. This call blocks until it resolves; waiting inside it costs you no tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | What to wait for. | |
| timeout_seconds | No | ||
| lookback_seconds | No | Also match events that arrived this many seconds BEFORE the call. Covers the gap between submitting a form and starting to wait. Raise it if you were slow to call. |