delete_messages
Move messages to the Trash folder to delete them while keeping them recoverable; nothing is permanently erased. Messages already in Trash cannot be deleted further.
Instructions
Delete messages by moving them to the Trash folder, where they can be recovered. Nothing is erased. Messages already in Trash cannot be deleted further.
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": {
"folder": "<folder>",
"uidvalidity": "<uidvalidity>",
"uids": "<uids>"
},
"name": "delete_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | uids from search_messages, all from this one folder. | |
| folder | Yes | Folder name exactly as list_folders or search_messages returned it. | |
| uidvalidity | Yes | The uidvalidity that search_messages returned for this folder. |