Wait for a code
wait_for_codeWaits for the next verification code to arrive at a line and returns it. Call this immediately BEFORE triggering the text, so nothing is missed. Returns timedOut: true if none arrives in time.
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 consider messages whose sender contains this text, case-insensitively — a short code, say 32665. | |
| lineId | Yes | The line's id, from list_lines. | |
| service | No | Optional. Only consider messages Cleat attributed to this service (its id or name, e.g. facebook), or that carry this label from your workspace's contacts. | |
| timeoutSeconds | No | How long to wait, up to 55. Defaults to 30. |