search_gmail_messages
Search Gmail messages by subject, sender, or date using operators. Returns message IDs and clickable links to fetch content in a second step.
Instructions
Search Gmail messages and return their IDs plus clickable web links.
Use this to locate messages by subject/sender/date before calling get_gmail_message_content (single) or get_gmail_messages_content_batch (many). This tool returns IDs only, not bodies — fetch bodies in a second step. Requires the gmail.readonly OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search operators, e.g. "from:alice@ex.com has:attachment newer_than:7d label:INBOX -category:promotions". | |
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| page_size | No | Max results per page, 1-500. Default 10. | |
| page_token | No | Pagination cursor — pass the next_page_token value returned by a previous call to fetch the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |