Gmail
The Gmail connector indexes message headers and message bodies into the local SQLite index and exposes read tools for labels, messages, and threads, plus three HITL-gated write tools for drafting and sending mail.
What’s indexed
Section titled “What’s indexed”- Service id:
gmail - Item types:
email - Body: the message body, up to 16,384 UTF-16 code units. The sync walks the MIME tree of a
format=fullmessage and prefers thetext/plainpart, falling back totext/htmlconverted to plain text; quoted reply chains and signature blocks are stripped. If no body part can be extracted (an encrypted or malformed message, or one exceeding the walker’s depth/part bounds) the connector falls back to Gmail’s shortsnippet, which stays searchable but is marked incomplete (body_complete = 0) rather than claiming to be the whole message. - Attachments are never fetched — attachment bytes never reach the index.
Indexing depth is enforced on every sync, not just at reindex time. A connector set to
summary clamps the body to 512 UTF-16 code units; metadata_only suppresses it entirely. See
Indexing depth.
Authenticate
Section titled “Authenticate”nimbus connector auth gmailOAuth (Google). The Gateway resolves a short-lived access token per service via the per-service Google OAuth flow and injects it into the connector spawn as GOOGLE_OAUTH_ACCESS_TOKEN. Tokens are never logged and never reach the LLM context.
Read tools (no HITL)
Section titled “Read tools (no HITL)”| Tool | Purpose |
|---|---|
gmail_label_list |
List all Gmail labels. |
gmail_message_list |
List Gmail message ids (metadata). Supports a Gmail search q (same syntax as the Gmail UI). |
gmail_message_read |
Read a single Gmail message (format: minimal | metadata | full | raw). |
gmail_thread_read |
Read a Gmail thread and its messages. |
Write tools (HITL-gated)
Section titled “Write tools (HITL-gated)”Every tool below requires interactive consent through the Gateway HITL gate before it executes.
| Tool | Purpose |
|---|---|
gmail_draft_create |
Create a Gmail draft. |
gmail_draft_send |
Send an existing Gmail draft by id. |
gmail_message_send |
Send a new Gmail message (not a draft). |