latest_code
Retrieve the most recent verification code from a specified line, with optional sender or service filters. Returns false when no code has been received.
Instructions
The most recent verification code already on a line, or found: false if none has arrived. Use wait_for_code instead when the code has not been sent yet.
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": "latest_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Optional. Only consider senders containing this text, e.g. a short code. | |
| lineId | Yes | The line's id, from list_lines. | |
| service | No | Optional. Only consider messages Cleat attributed to this service, e.g. 'facebook'. |