Get the latest verification code
get_latest_otpGet the newest message sent to one address and the verification code (OTP) extracted from it. Returns found=false while nothing has arrived: wait about 5 seconds and call it again. When the message has no code, such as a verification link, otp is null; call get_message with message.id to read the body.
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": {
"to": "<to>"
},
"name": "get_latest_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Full recipient address, e.g. signup-42@otp.example.com. Case-insensitive. | |
| since | No | Optional ISO 8601 time. Ignore messages received before it, e.g. the moment the test started. |