Move messages to the trash
trash_messagesMove messages to Trash to remove them from their mailbox while keeping deletion reversible; recover them later by moving them back out.
Instructions
Moves messages to the trash. This is what deletion means here: the messages stay in "Trash" and in "All Mail" and can be moved back out with move_messages. There is no tool in this server that deletes a message for good or empties the trash, so that a wrong decision stays reversible.
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": {
"messageIds": "<messageIds>"
},
"name": "trash_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | The mailbox the messages are in, if they share one. Only a shortcut: without it every message is looked for across the mailboxes it could be in, which costs a request each. | |
| messageIds | Yes | The message ids, as they came from a listing or a search. At most 50 per call. |