search_indexed_emails
Search locally indexed emails for fast, offline results. Use filters like sender, subject, folder, date, and attachments without making IMAP connections.
Instructions
Search the local SQLite mailbox index without making any IMAP connection. Supports free-text and field shortcuts inline: from:alice@example.com, to:bob, subject:invoice, label:Archive, domain:acme.com. Use for fast, offline-capable searches when the index is populated. Prefer search_emails when you need live IMAP results or when the index is stale or empty. Prefer this over search_emails when the index is current. Use search_emails if messages were received after the last sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient filter. | |
| from | No | Sender filter. | |
| label | No | Folder or label filter. | |
| limit | No | Maximum results. | |
| query | No | Free-text query across indexed metadata. | |
| dateTo | No | Inclusive end date/time in ISO format. | |
| fields | No | Trim each returned email to just these field names (e.g. ["subject","from","date"]) to save tokens on large result sets. id is always included. Accepts either an array or a comma-separated string. Omit to get the full object. | |
| folder | No | Folder filter. | |
| isRead | No | Read status filter. | |
| subject | No | Subject filter. | |
| dateFrom | No | Inclusive start date/time in ISO format. | |
| threadId | No | Thread id filter. | |
| isStarred | No | Starred status filter. | |
| mailboxRole | No | Normalized mailbox role like Inbox, Sent, Archive, or Trash. | |
| senderDomain | No | Sender domain filter such as example.com. | |
| hasAttachment | No | Attachment filter. | |
| attachmentName | No | Attachment filename filter. |