search_emails
Locate messages in an IMAP mailbox by text, sender, folder, or sent-date range without marking them as read; returns newest first.
Instructions
Search emails by text (subject, sender, and body), sender, and date range. Text matches whole words by default ("bill" does not match "billion"). Dates are calendar days in local time and use the date the email was sent. Returns matches newest first. Emails are not marked as read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Only emails from this sender (address or name) | |
| count | No | How many (default 10, max 50) | |
| query | No | Text to find in the subject, sender, or body | |
| since | No | On or after this date, e.g. 2026-09-01 | |
| before | No | Before this date | |
| folder | No | Folder (default: INBOX) | |
| wholeWord | No | Match whole words only (default true); false also matches inside longer words | |
| unreadOnly | No | Only unread emails (default false) |