List inbox threads or batch-fetch (legacy)
fetchRetrieve Gmail email threads with metadata for quick triage, or full bodies for detailed reading. Supports inbox and raw query modes.
Instructions
Recommended: mode=list (default) returns lightweight metadata for triage (subject, snippet, threadId). Snippets are not full email bodies — call get_thread(threadId) for each thread the user should read or reply to, and present message.text verbatim (do not summarize). Never load multiple full threads in one context. queryMode=inbox (default) prepends inbox review filters (in:inbox, exclude follow-up label). queryMode=raw passes query to Gmail unchanged — use for sent mail, archives, all-mail, and date-filtered analysis (e.g. in:sent after:2026/01/01). Legacy mode=full batch-loads bodies and auto-drafts every thread (token-heavy; avoid for normal inbox review). Nothing is sent automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | list | |
| maxResults | No | ||
| query | No | ||
| queryMode | No | inbox | |
| includeLatestBody | No | ||
| saveGmailDrafts | No | ||
| writeMarkdownFile | No | ||
| accountAlias | No | ||
| chatScope | No |