Search emails
search_emailsSearch email folders by sender, recipient, subject, body text, date range, or unread status, and return matching messages newest first with uid, date, sender, recipient, subject, and read status.
Instructions
Search a folder. With no filters returns the latest messages. Returns uid, date, from, to, subject, read flag. Newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Part of recipient address | |
| from | No | Part of sender address or name | |
| text | No | Words in the body | |
| limit | No | Max messages to return | |
| since | No | On or after date, YYYY-MM-DD | |
| before | No | Before date, YYYY-MM-DD | |
| folder | No | Folder path, default INBOX | INBOX |
| account | Yes | Mailbox address, e.g. you@example.com | |
| subject | No | Words in the subject | |
| unread_only | No | Only unread messages |