wait_for_relay
Block until a new relay record with an id greater than the specified one appears, or until timeout. Returns the metadata of the record that landed, enabling efficient batched processing.
Instructions
Reads only; it deposits nothing. Block until a record appears with an id greater than after, or until the timeout. Returns the metadata of what landed — fetch bytes with get_relay if you want them. THIS DOES NOT WAKE YOU: you must already be running to call it. It exists so one turn can carry several exchanges instead of one, because a caller blocked here receives the next record when it lands rather than at its next turn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | the last id you saw, e.g. relay-0079. Omit to wait for anything not already held | |
| timeout_ms | No | default 30000, capped at 90000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appeared | Yes | metadata of what landed. Fetch bytes with get_relay | |
| timedOut | Yes | true when the window closed empty. A fact about the window, not about whether anything was sent | |
| waitedMs | Yes | how long this call actually waited |