delete_email
Move an email to Trash, or permanently delete it with the permanent option. Choose reversible or irreversible removal.
Instructions
Move an email to Trash. Pass permanent: true to permanently delete (irreversible).
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": {
"messageId": "<messageId>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The Gmail message ID | |
| permanent | No | If true, permanently delete the email (default: false — moves to Trash) |