Search emails
search_emailsSearch Gmail messages with Gmail search syntax and return message IDs, threads, senders, recipients, subjects, dates, snippets, and labels, newest first.
Instructions
Search the mailbox with Gmail search syntax. Returns id, threadId, from, to, subject, date, snippet and labels for each match, newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Gmail search syntax, e.g. "from:alice is:unread newer_than:7d". Defaults to "in:inbox". | in:inbox |
| max_results | No | How many messages to return, 1 to 25. |