Search emails
search_emailsSearch local Apple Mail messages by keywords, sender, recipient, date range, mailbox, attachment presence, and read status. Supports paginated results for large sets.
Instructions
Search local envelope data and full bodies; sender filters are case-insensitive substring matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only include mail after this ISO-8601 date or timestamp. | |
| limit | No | Maximum number of results to return. | |
| 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. | |
| offset | No | Number of matching results to skip for pagination. | |
| 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 | Sender name, address, or address fragment to match. | |
| 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 | |||