gmail search messages
gmail_search_messagesSearch Gmail messages using Gmail search syntax and return matching message IDs with headers and snippets, so you can locate emails and retrieve full bodies separately.
Instructions
Search Gmail with Gmail search syntax (for example 'from:alice newer_than:7d').
Returns message ids with From, To, Subject, Date, and snippet when include_headers is true. Use gmail_get_message for the body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| page_token | No | ||
| max_results | No | ||
| include_headers | No | ||
| include_spam_trash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||