delete_message
Move email messages to Trash by default; permanently delete them only when permanent and confirm are set to true. Specify a UID and optional folder to remove mail from an IMAP account.
Instructions
Move to Trash by default. Permanent deletion requires permanent=true and confirm=true.
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": {
"uid": "<uid>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | No | INBOX | |
| confirm | No | ||
| permanent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||