search_emails
Find emails by keyword across subject, sender, and body. Apply filters for recipient, attachments, size, and reply status.
Instructions
Search emails by keyword across subject, sender, and body. Omit query (or pass an empty string) to use it as a pure filter — e.g. find all emails with attachments from a specific recipient without a keyword. Supports additional filters for recipient, attachments, size, and reply status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Filter by recipient address | |
| page | No | Page number | |
| query | No | Search keyword (omit or leave empty to use filters only) | |
| account | Yes | Account name from list_accounts | |
| mailbox | No | Mailbox path (default: INBOX) | INBOX |
| answered | No | Filter: true=replied, false=not replied | |
| pageSize | No | Results per page | |
| larger_than | No | Minimum email size in KB | |
| smaller_than | No | Maximum email size in KB | |
| has_attachment | No | Filter: true=has attachments, false=no attachments |