2.3 KiB
2.3 KiB
name, label, description, language, inputs
| name | label | description | language | inputs | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| gmail | Gmail | Read Gmail messages, threads, and labels using the connected Google account. Use this tool to check emails, search for specific messages, read email content, list labels, or get mailbox profile info. Requires the user to have connected their Google account in Settings → Integrations. | typescript |
|
Gmail Tool
Read-only access to the user's Gmail account via the Gmail REST API.
Available Actions
- list_messages: List or search messages. Use
queryfor Gmail search syntax. - get_message: Get full message content by
message_id. - list_labels: List all Gmail labels with message counts.
- get_thread: Get all messages in a thread by
thread_id. - get_profile: Get the user's Gmail profile info.
- sync_inbox: Bulk-download emails to disk. Requires
output_dir. Usequeryto filter (e.g.after:2026/02/01 before:2026/03/01). Handles pagination internally, saves each email as a markdown file, skips already-saved messages. Returns only a summary count — does NOT flood context with email bodies.
Query Syntax
Gmail search operators for the query parameter:
is:unread,is:read,is:starredfrom:email@example.com,to:email@example.comsubject:"search term",has:attachmentafter:YYYY/MM/DD,before:YYYY/MM/DDin:inbox,in:sent,in:trashlarger:1M,smaller:100K- Combine with AND, OR, - (NOT)
Scope
This tool has read-only access (gmail.readonly scope). It cannot send, modify, or delete messages.