Prepare email deletion
triage_plan_deletePrepare a capped deletion plan for emails using exact sender matching, with filters for date range, mailbox, unread status, and attachments.
Instructions
Prepare a capped Trash plan whose sender filter is exact, never a broad substring match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only include mail after this ISO-8601 date or timestamp. | |
| limit | No | Maximum messages to stage; 0 uses the configured deletion cap. | |
| query | No | Words to find in the subject, sender, snippet, or indexed body. | |
| before | No | Only include mail before this ISO-8601 date or timestamp. | |
| account | No | Account UUID; omit it to include every configured account. | |
| mailbox | No | Mailbox name to search, such as INBOX or Archive. | |
| to_addr | No | Recipient name, address, or address fragment to match. | |
| from_addr | No | Exact sender email address to match; fragments never select mail. | |
| unread_only | No | When true, include only unread messages. | |
| has_attachment | No | True for mail with attachments, false for mail without them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||