prepare_batch_delete_emails
Prepares batches of up to 50 emails for deletion by generating per-email approval tokens. Selectively confirm desired deletions with confirm_batch_operation.
Instructions
Prepare to delete multiple emails (up to 50). Returns individual approval tokens per email so you can selectively confirm. Call confirm_batch_operation with the desired tokens to execute. Returns an error if any email ID does not exist. Tokens expire 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_ids": "<email_ids>"
},
"name": "prepare_batch_delete_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_ids | Yes | The email IDs to delete, 1-50 (e.g., from list_emails or search_emails) |