advanced_search
Search emails using multiple criteria including sender, recipient, subject, dates, attachments, read status, and mailbox. Retrieve filtered results with customizable limit and sort order.
Instructions
Advanced email search with multiple criteria
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 | |
| isPinned | No | Filter pinned 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: 50) | |
| ascending | No | Sort oldest first instead of newest first (default: false) |