Search messages
mail_searchList and filter email messages from a folder by sender, date range, or full-text query, returning summaries for quick review.
Instructions
List messages of a folder (Inbox by default), newest first, with filters: exact sender, date range, unread only. query runs a full-text search (subject, body, sender) and cannot be combined with the other filters. Returns a compact summary (id, sender, subject, date, preview); use mail_get_message for the full content. To page, pass cursor back verbatim. For a whole-mailbox view by sender, prefer mail_senders_summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Exact sender address, e.g. news@example.com | |
| limit | No | Results per page (max 100) | |
| query | No | Full-text search (simple KQL). Exclusive with from/since/until/unreadOnly. | |
| since | No | Received on or after this date (ISO) | |
| until | No | Received on or before this date (ISO) | |
| cursor | No | Page cursor returned by a previous call | |
| folder | No | Folder (name, path, well-known name or id). Default: inbox | |
| unreadOnly | No | Only unread messages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| nextCursor | No |