Search Mail
mail_searchSearch emails using keywords or field filters. Narrow results by sender, subject, date range, or mailbox.
Instructions
Search Mail by literal query text or explicit fielded filters. Use this tool for keyword-style lookups such as sender, subject, or body search. For chronological retrieval, prefer mail_recent instead of inventing keywords. If the user asks for mail from a sender and does not give a time window, ask a follow-up for since and/or before rather than running an unbounded sender search. If you already have the window, pass the user's literal query string and constrain it with since and/or before.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| since | No | ||
| before | No | ||
| filters | No | ||
| mailbox_id | No | ||
| search_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |