Extract the verification code from an email
get_verification_codeExtract a verification or one-time code from an email message to complete signups or logins. Confirms the code before reporting it, so a wrong value is never returned.
Instructions
Pull the verification or one-time code out of a message. Use this after wait_for_email when the user needs a code to complete a signup or login. Requires a paid API key. If no code is found with confidence, that is reported rather than guessed, because a wrong code is worse than none.
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": {
"address": "<address>",
"message_id": "<message_id>"
},
"name": "get_verification_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The inbox address. | |
| message_id | Yes | Message id from wait_for_email or list_messages. |