list_emails_metadata
Fetch email metadata—subject, sender, recipients, date—without loading bodies. Filter by mailbox, sender, subject, read status, and more, then use returned email IDs to retrieve full content.
Instructions
List email metadata (email_id, subject, sender, recipients, date) without body content. Time filtering and ordering use provider INTERNALDATE; the returned date is the message's RFC 5322 Date header. Returns email_id for use with get_emails_content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Search for text in the email body (IMAP BODY). | |
| page | No | The page number to retrieve (starting from 1). | |
| seen | No | Filter by read status: True=read, False=unread, None=all. | |
| text | No | Search for text in the entire message — headers and body (IMAP TEXT). | |
| order | No | Sort matching emails by provider INTERNALDATE: oldest first (`asc`) or newest first (`desc`). | desc |
| since | No | Filter to messages whose provider INTERNALDATE is equal to or later than this timezone-aware datetime (inclusive); any UTC offset is accepted and normalized to UTC. | |
| before | No | Filter to messages whose provider INTERNALDATE is earlier than this timezone-aware datetime (exclusive); any UTC offset is accepted and normalized to UTC. | |
| flagged | No | Filter by flagged/starred status: True=flagged, False=unflagged, None=all. | |
| mailbox | No | The mailbox to search. | INBOX |
| subject | No | Filter emails by subject. | |
| answered | No | Filter by replied status: True=replied, False=not replied, None=all. | |
| page_size | No | The number of emails to retrieve per page. | |
| tag_match | No | Require all requested tags or at least any one requested tag. | all |
| to_address | No | Filter emails by recipient address. | |
| account_name | Yes | The name of the email account. | |
| from_address | No | Filter emails by sender address. | |
| semantic_tags | No | Configured semantic tag names to match. | |
| has_attachment | No | Filter by attachment presence: True=has attachment, False=none, None=all (multipart/mixed heuristic; may miss inline images or yield false positives). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| since | Yes | ||
| total | Yes | ||
| before | Yes | ||
| emails | Yes | ||
| subject | Yes | ||
| warnings | No | ||
| page_size | Yes |