search_emails
Search emails in real-time using live IMAP filters with optional local filtering for attachments, labels, and more. Ideal for querying messages not yet in the local index.
Instructions
Search emails via live IMAP filters with optional local post-processing for attachments and labels. Use when you need real-time results or must search messages not yet in the local index. Prefer search_indexed_emails when the index is populated — it is significantly faster and works even when Bridge IMAP is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Free-text query across headers and body. | |
| folder | No | Folder to search. Defaults to all folders. | |
| label | No | Folder or label filter applied locally after IMAP fetch. | |
| threadId | No | Thread id filter applied locally after IMAP fetch. | |
| from | No | Sender filter. | |
| to | No | Recipient filter. | |
| subject | No | Subject filter. | |
| hasAttachment | No | Whether the message should have attachments. | |
| attachmentName | No | Attachment filename filter applied locally. | |
| isRead | No | Read status filter. | |
| isStarred | No | Starred status filter. | |
| dateFrom | No | Inclusive start date/time in ISO format. | |
| dateTo | No | Inclusive end date/time in ISO format. | |
| limit | No | Maximum results. |