search_emails
Retrieve email metadata from specified mailboxes using filters for sender, recipient, subject, text, date range, flags, and pagination to find relevant messages.
Instructions
Search 1-500 metadata rows in stable mailbox order with optional paging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | ||
| text | No | ||
| after | No | ||
| limit | No | ||
| before | No | ||
| cursor | No | ||
| fields | No | ||
| sender | No | ||
| starred | No | ||
| subject | No | ||
| targets | Yes | ||
| recipient | No | ||
| attachment_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| errors | Yes | ||
| results | Yes | ||
| truncated | Yes | ||
| next_cursor | Yes | ||
| targets_pending | Yes | ||
| targets_searched | Yes |