Move an email to trash
trash_messageMoves an email to its mailbox's trash folder. It can be restored with move_message until the trash is emptied.
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": {
"accountId": "<accountId>",
"uid": "<uid>"
},
"name": "trash_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message, as returned by search and listing tools. | |
| folder | No | IMAP folder containing the message. Defaults to INBOX. | INBOX |
| accountId | Yes | Account id, as returned by list_accounts. |