mail_search
Search the signed-in user's mailbox by keyword, subject, or sender. Returns newest emails first with subject, sender, date, and preview from inbox, sent, drafts, or all folders.
Instructions
Search the signed-in user's mailbox by keyword, subject or sender name. Returns id, subject, sender, date and a preview snippet, newest first. Searchable folders are inbox, sentitems, drafts, or all. Use mail_list_recent when the ask is time-based rather than keyword-based, and mail_get_thread to read a whole conversation. Requires Mail.Read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search keywords, subject, or sender name | |
| folder | No | Mail folder: inbox | sentitems | drafts | all | inbox |
| max_results | No | Maximum emails to return (1–50) |