Search emails
search_emailsSearch emails across all connected Gmail accounts using Gmail query syntax, returning a merged, date-sorted list even if some accounts fail.
Instructions
Search with Gmail query syntax (e.g. "from:ana@x.com is:unread newer_than:7d"). Omit "account" to search EVERY configured mailbox in parallel and get one merged, date-sorted list. If one account fails the others still return, and the failure is reported in "failures".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search query, exactly as typed in the Gmail search box. | |
| account | No | Restrict to one account. Omit to search all of them. | |
| max_results | No | Maximum messages to return (per account when searching all). Default 20. |