prepare_archive_email
Prepares an email for archiving by returning a preview and approval token. Use confirm_archive_email with the token to move the email to the Archive folder.
Instructions
Prepare to archive an email (move to Archive folder). Returns a preview of the email and an approval token. Call confirm_archive_email with the token to execute. Returns an error if the email ID does not exist. The token expires after 5 minutes.
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": {
"email_id": "<email_id>"
},
"name": "prepare_archive_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | The email ID to archive (e.g., from list_emails or search_emails) |