delete_email
Moves a specified email message from its current folder to the account's Trash folder, allowing recovery from the mail client instead of permanent deletion.
Instructions
Delete a message by moving it to the account's Trash folder.
The Trash folder is discovered via SPECIAL-USE (e.g. "Deleted Messages" on iCloud, "[Gmail]/Trash" on Gmail). The message is not permanently expunged from Trash, so it can still be recovered from the mail client.
Args: account: Account name from list_accounts. folder: Folder the message is currently in. uid: Message UID in that folder.
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": {
"account": "<account>",
"folder": "<folder>",
"uid": "<uid>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| uid | Yes | ||
| from | Yes |