wait_for_code
Retrieve the next verification code arriving on a Cleat line, ignoring any already received. Use it before sending the text to capture only new codes.
Instructions
Wait for the NEXT code to arrive on a line and return it. A code that was already in the inbox when the call started is never returned. Call this immediately before the step that sends the text, then complete that step while it waits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Optional. Only accept senders containing this text. | |
| lineId | Yes | The line's id, from list_lines. | |
| service | No | Optional. Only accept messages Cleat attributed to this service. | |
| timeoutSeconds | No | How long to wait. 1 to 300 seconds. |