imap_search
Search large Apple Mail IMAP mailboxes by sender, subject, text, or since date; returns headers and UIDs for imap_fetch while keeping messages unread.
Instructions
Server-side search - fast even on mailboxes too large for AppleScript.
since takes the IMAP date form, e.g. "01-Oct-2026". Returns headers
plus the UIDs to pass to imap_fetch. Read-only: nothing is marked read.
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": {
"account": "<account>"
},
"name": "imap_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| account | Yes | ||
| mailbox | No | INBOX | |
| from_contains | No | ||
| text_contains | No | ||
| subject_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |