confirm_archive_email
Confirm an email archive request using a valid token and move the email to the Archive folder. Returns success or clear errors for invalid or expired tokens.
Instructions
Confirm and execute archiving an email using a token from prepare_archive_email. Moves the email to the Archive folder. Returns a success message. Returns an error if the token is invalid, expired, already used, or if the email has changed since the prepare step.
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": {
"token_id": "<token_id>",
"email_id": "<email_id>"
},
"name": "confirm_archive_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to archive — must match the ID used in the prepare step | |
| token_id | Yes | The approval token UUID from prepare_archive_email (e.g., "a1b2c3d4-...") |