joltsms_get_latest_otp
Retrieve the parsed OTP code from a phone number's recent SMS messages. If none is found, return the message body for manual extraction.
Instructions
Get the most recent parsed OTP code from a phone number.
Convenience tool — checks recent messages (last 10 minutes by default) for a parsed verification code. If no parsed code is found, returns the most recent message body for manual extraction.
Use joltsms_wait_for_sms if you need to wait for an OTP that hasn't arrived 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": {
"number_id": "<number_id>"
},
"name": "joltsms_get_latest_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Only look at messages after this ISO 8601 datetime. Defaults to last 10 minutes. | |
| number_id | Yes | Number ID (UUID) or phone number (e.g. +17243213654 or 7243213654) |