gmail_search
Search Gmail with native operators like from:, is:unread, has:attachment. Returns headers and snippets; empty query lists recent mail. Use message or thread tools for full content.
Instructions
Search the mailbox using Gmail's own query syntax.
Takes the same operators as the Gmail search box: from:, to:,
subject:, has:attachment, is:unread, label:, after:, before:,
newer_than:7d. An empty query lists the most recent mail.
Returns headers and a snippet per message, not bodies. Follow with gmail_get_message for one, or gmail_get_thread for the conversation.
Args: query: Gmail search expression, e.g. "is:unread from:client.com". limit: Maximum messages to return, up to 100. include_spam: Include spam and trash, which are excluded by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| include_spam | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |