Search mail messages
mail_searchFind emails by keyword and structured filters such as sender, recipient, date, or attachment, returning summary items or full message bodies for review.
Instructions
Find message candidates by keyword and structured filters, returning a bare list of summary items or full-body items. Use mail_show for one stored id and mail_thread for a whole conversation or an RFC822 Message-ID string. keyword syntax: terms separated by spaces are ANDed; uppercase AND / OR / NOT, parentheses, and double-quoted phrases are honoured, and lowercase and/or/not are ordinary search terms. Results with a keyword are ordered by relevance, not by date, and each item reports match_field (subject, body, or null when the hit is in an indexed field this item does not show, such as recipients or attachment names) and match_in (new or quoted -- whether the hit the snippet shows is in the message's own new content or in its quoted history). snippet is centred on the hit when there is one, on the position covering the most of what was asked for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| sender | No | ||
| keyword | No | ||
| to_date | No | ||
| from_date | No | ||
| full_body | No | ||
| recipient | No | ||
| sender_domain | No | ||
| body_max_chars | No | ||
| attachment_name | No | ||
| recipient_domain | No | ||
| recipients_limit | No | ||
| attachments_limit | No | ||
| participants_domain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |