advanced_search
Search Fastmail email with structured filters by sender, recipient, subject, unread state, attachments, mailbox, and date range. Supports pagination to browse large result sets.
Instructions
Search Fastmail email with structured filters such as sender, recipient, subject, unread state, attachments, mailbox, and date range in paginated form. Use when the user asks for something like "find the latest message from Alice", "show unread invoices with attachments", or "find messages from last week". Returns items, total, has_more, and next_offset so the agent can refine or continue the search without consuming excess context. Do not use for simple inbox checks; use get_recent_emails. Do not use when you already have an emailId; use get_email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Text to search for in subject/body | |
| from | No | Filter by sender email | |
| to | No | Filter by recipient email | |
| subject | No | Filter by subject | |
| hasAttachment | No | Filter emails with attachments | |
| isUnread | No | Filter unread emails | |
| mailboxId | No | Search within specific mailbox | |
| after | No | Emails after this date (ISO 8601) | |
| before | No | Emails before this date (ISO 8601) | |
| limit | No | Maximum results (default: 20) | |
| offset | No | Zero-based offset for pagination. Use next_offset from the previous response to fetch the next page. |