gmail_search
Search Gmail messages with full Gmail query syntax, such as from:, subject:, is:unread, or has:attachment. Returns newest matches first across All Mail, supporting limits and pagination.
Instructions
Search email with Gmail search syntax (from:, to:, subject:, is:unread, has:attachment, label:, newer_than:2d, after:2026/01/01...). Covers All Mail (not Trash/Spam). Newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 1-100 (default 20) | |
| query | No | Gmail search query. Default 'in:inbox'. Use '' for everything. | |
| before_id | No | Only messages with id lower than this (pagination) |