Search email
search_emailsFind and filter email messages by sender, subject, date, folder, unread, or flagged status, returning newest-first summaries to quickly locate emails for further reading.
Instructions
Find messages, newest first, returning short summaries rather than full bodies.
Every filter is combined with AND, and omitting all of them returns the most recent messages in the folder. Reading a message costs a separate read_email call, using the uid from these results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results. | |
| since | No | Only messages sent on or after this date. | |
| before | No | Only messages sent strictly before this date. | |
| folder | No | Folder to search. | INBOX |
| to_contains | No | Match the To header against this substring. | |
| unread_only | No | Only unread messages. | |
| flagged_only | No | Only flagged/starred messages. | |
| from_contains | No | Match the From header against this substring. | |
| text_contains | No | Match anywhere in the headers or body. | |
| subject_contains | No | Match the subject against this substring. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |