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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lineId": "<lineId>"
},
"name": "wait_for_code"
}
}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. |