Search mail
search_emailsSearch one or all connected Gmail mailboxes using Gmail query syntax to locate messages and return IDs, threads, dates, senders, recipients, subjects, and snippets.
Instructions
Search one mailbox, or all of them with account="all", using Gmail search syntax. Returns id, thread id, date, from, to, subject and snippet — use read_email for the full body. An empty query lists the newest mail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Gmail query, e.g. "from:bank is:unread newer_than:30d". | |
| account | No | Email, alias, or "all" to search every connected mailbox. | |
| page_token | No | nextPageToken from a previous call (single account only). | |
| max_results | No | How many messages to return (1–100). With account="all", the newest across all mailboxes. |