search_emails
Search through Mail.app messages by sender, subject, date, or free text. Retrieve metadata including message ID to read or reply.
Instructions
Search Mail.app messages via the Envelope Index database. Returns rich metadata including RFC message-id (usable with read_email, reply_to_email, set_message_flags).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Substring match on sender address or display name | |
| limit | No | ||
| query | No | Free-text search across subject, sender, and body summary. Omit to list-only by other filters. | |
| since | No | ISO date — only messages on or after this date | |
| account | No | Substring match against the full mailbox URL (host and path). Use the account hostname to target an account (e.g. 'icloud'), or a mailbox path segment to target a specific folder (e.g. 'INBOX', 'Amtrak'). | |
| subject | No | Substring match on subject | |
| include_deleted | No |