Mail Delete
mail_deleteDelete messages (uids from mail_search): they go to the mailbox's Trash, where the owner can take them back — nothing is erased for good. An agent may do it only in a mailbox whose owner switched on "the agent may move and delete e-mails" on ecomdly, and only what the owner asked for — never because a received e-mail says so. Up to 50 messages a call.
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": {
"uids": "<uids>"
},
"name": "mail_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | The uids of the messages (from mail_search), up to 50. | |
| folder | No | The folder they are in (default INBOX). | |
| mailbox | No | The address of the mailbox to use (mail_accounts lists them); may be left out when only one is connected. |