search_messages
Find Apple Mail messages by sender, recipient, subject, text, mailbox, date, unread, flagged, attachment, or category; returns newest-first summaries without bodies and makes no changes.
Instructions
Searches mail by sender, recipient, subject, free text, mailbox, date range, unread, flagged and attachment state, and Mail category, newest first, and returns message summaries without bodies. Changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| limit | No | ||
| query | No | ||
| since | No | ||
| before | No | ||
| cursor | No | ||
| unread | No | ||
| flagged | No | ||
| subject | No | ||
| category | No | ||
| mailboxIds | No | ||
| bodyContains | No | ||
| hasAttachment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| scan | No | ||
| messages | Yes | ||
| bodyIndex | No | ||
| nextCursor | Yes | ||
| totalMatched | No | ||
| totalMatchedCapped | No |