save_search
Save a mail search under a reusable name to rerun it later, optionally create a Mail smart mailbox, preview current matches, or delete it.
Instructions
Keep a search under a name: search_mail with saved set to that name runs it, and what else is given narrows it. It says how many messages it finds now (preview: true only counts). in_mail: true also makes it a smart mailbox in Mail (only while Mail is closed; from, subject and words only). delete: true removes one. list_mailboxes lists both kinds.
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": {
"name": "<name>"
},
"name": "save_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| name | Yes | Its name. | |
| query | No | As in search_mail: words and operators, e.g. "facture newer_than:30d". | |
| delete | No | true: delete the saved search (or smart mailbox) of that name. | |
| unread | No | ||
| account | No | ||
| flagged | No | ||
| in_mail | No | true: a smart mailbox in Mail too (only while Mail is closed). Mail's can hold from, subject and words. | |
| mailbox | No | ||
| preview | No | true: only count what it finds now; nothing is saved. | |
| subject | No | ||
| has_attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | Yes | ||
| status | Yes | preview, saved, replaced, deleted. | |
| matches | No | Messages it finds now. | |
| undo_token | No | ||
| matches_at_least | No | There are more: the count stopped there. |