Skip to content

Google Drive

The Google Drive connector indexes file and folder metadata, and the text of Google Docs, into the local SQLite index and exposes read tools for listing, searching, and downloading files, plus four HITL-gated write tools for create / move / rename / trash.


  • Service id: google_drive
  • Item types: doc, file, folder

Google Docs (doc) are indexed with their text, exported from Drive as plain text: up to 16,384 characters at the full index depth, 512 at summary, none at metadata_only. A Doc is exported only when it is new or has changed since its last export, and at most 200 Docs are exported per sync run; the rest follow on the next runs. A Doc that cannot be exported (for example one over Drive’s export size limit) is still indexed, by name, without text. Doc text is embedded like Notion pages: with an OpenAI key configured it is embedded by OpenAI, otherwise on this machine.

Other files (file, including PDFs and images) and folders are metadata only: name, description, owner, link, MIME type and size.

After upgrading, Drive re-lists your Docs once so that Docs already indexed as file gain their text. The re-list writes Docs that are already in the index or were changed in the last 30 days; it never indexes an older Doc that was not indexed before.

Docs are not mined for decisions or glossary terms by default. The Product role pack (version 1.1.0) maps them as a document source: [sources] map = ["google_drive:doc=doc"]. You can add the same line to your own nimbus.toml.

Terminal window
nimbus connector auth google-drive

OAuth (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.

Tool Purpose
gdrive_file_download Download file bytes (base64) or text (utf-8 for text/*). Google Docs export to plain text; Sheets to CSV. Capped by maxBytes (default 256 KiB, max 16 MiB).
gdrive_file_list List Drive files (metadata only). Supports pagination via pageToken.
gdrive_file_metadata Get metadata for a single Drive file or folder (owners, parents, links, mimeType, description).
gdrive_file_search Full-text search over Drive (fullText contains). Non-trashed files only.

Every tool below requires interactive consent through the Gateway HITL gate before it executes.

Tool Purpose
gdrive_file_create Create a Drive file. Optional text content uses multipart upload.
gdrive_file_move Move a file or folder to another parent folder.
gdrive_file_rename Rename a Drive file or folder.
gdrive_file_trash Move a Drive file or folder to trash (recoverable).

Remote content in a model-written markup file is refused. For gdrive_file_create written by the model (or proposed by an MCP client), Nimbus scans the content when the file is markup: its mimeType is HTML, XHTML, SVG or other XML or markup (matched case-insensitively and without parameters such as ; charset=utf-8, so TEXT/HTML; charset=UTF-8 counts), a Google Docs type, or malformed; or its name ends in .html, .htm, .xhtml, .svg, .xml, .mht or .mhtml. A file named .md is also scanned as Markdown, as for Obsidian, whatever its type. The create is refused, before it asks you, if opening the file would load remote content: an external image or <use>/<image> link, <foreignObject>, a CSS url( (an SVG url(#id) gradient or filter reference is allowed), @import, an xml-stylesheet instruction or a DOCTYPE that names a DTD. A text/plain file with a plain name is not scanned, and an empty file is never refused.