mail_search_emails
Find specific emails in Fastmail by full-text search and optional filters like sender, recipient, subject, attachments, or mailbox. Retrieve results with ID, subject, from, and date.
Instructions
Search emails with optional filters. Returns id, subject, from, date.
Args: text: Full-text search query. from_: Filter by sender address. to: Filter by recipient address. subject: Filter by subject text. has_attachment: Filter by attachment presence. in_mailbox: Mailbox ID to restrict search to. Use mail_list_mailboxes to get the ID. limit: Max results (default 20). newest_first: Sort newest first (default True).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| from_ | No | ||
| to | No | ||
| subject | No | ||
| has_attachment | No | ||
| in_mailbox | No | ||
| limit | No | ||
| newest_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |