search_indexed_emails
Search a local SQLite mailbox index offline without opening IMAP connections. Filter by sender, recipient, subject, label, date, or domain to find indexed emails.
Instructions
Search the local SQLite mailbox index (of ALL configured accounts by default; pass account = address or slug to search only one; non-primary ids are prefixed '::') 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. Each email's attachments are metadata only (id/filename/contentType/size/disposition) — use list_attachments or get_email_by_id for full attachment detail.
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. | |
| account | No | Account address or slug to search (see list_accounts). Omit to search ALL configured accounts; non-primary ids come back prefixed '<slug>::'. | |
| 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. |