Move an email to Trash
mail_trash_messageMove one email (uid from mail_list_messages) to the Trash folder of a connected mailbox. It is not permanently deleted. Needs confirm: true after the customer approves.
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": "<email>",
"uid": "<uid>"
},
"name": "mail_trash_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| Yes | Mailbox address on one of the customer's own domains, e.g. info@example.com. | ||
| folder | No | Mail folder (default INBOX), e.g. INBOX, Sent, Trash. | |
| confirm | No | Must be true. Set it only after the customer has explicitly confirmed this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moved | No |