gam_gmail_search_messages
Search a Gmail mailbox using custom queries to retrieve message metadata with snippets. Specify user, search query, result count, and output format.
Instructions
Searches a mailbox and returns metadata + snippets. The mailbox owner (userEmail) is the DWD impersonation subject.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search syntax (e.g. "from:payroll subject:urgent"). | |
| format | No | json | |
| userEmail | Yes | Mailbox to search (also the DWD subject). | |
| maxResults | No |