search_emails
Search Gmail using full search syntax like from:, subject:, or is:unread to find specific emails and retrieve details like sender, subject, and date.
Instructions
Search Gmail using full Gmail search syntax (from:, subject:, is:unread, etc).
Pass a single query string for a flat list of results, or a list of queries to run several searches in one call (output is sectioned by query, and max_results applies per query).
Returns UID, sender, subject, date, and a Gmail web URL for each match.
Args: queries: Single query string or list of query strings. max_results: Max emails to return per query (default 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |