delete_message
Delete up to 100 email messages by ID, moving them to Trash; require confirmation for bulk deletes or final removal of messages already in Trash.
Instructions
Delete messages (at most 100). Mail moves them to the Trash mailbox. Each deleted message gets a new id. More than 10 messages, or any message already in the Trash (that delete is final), needs 'confirm' true. If Mail is not running, applesauce opens it hidden in the background and leaves it open.
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": {
"ids": "<ids>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Message ids from search_mail. At most 100. | |
| confirm | No | Must be true for a large or final delete. Without it, nothing changes and the result says why. | |
| in_account | No | Account id of the message (the 'account_id' field of search_mail). Only needed with 'in_mailbox'. | |
| in_mailbox | No | Mailbox path of the message (the 'mailbox' field of search_mail). Only needed when Full Disk Access is missing. Give 'in_account' too. |