gogcli-mcp-drive
v4.12.0Google Drive via gogcli for Claude — search, upload, download, permissions
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gog_auth_list
List the Google accounts stored in gogcli, with their scopes. This reads local configuration only — it does not contact Google and does NOT tell you whether an account still works: a signed-out account whose refresh token expired or was revoked is listed here exactly like a healthy one, scopes and all. Use gog_auth_health to check whether an account can actually authenticate.
gog_auth_status
Show gogcli auth CONFIGURATION: keyring backend, credential files, and auth setup. Despite the name this is not a health check — it reads local setup and does not contact Google, so it says nothing about whether an account can still authenticate. Use gog_auth_health for that.
gog_auth_health
Check the LIVE health of each stored Google account. Unlike gog_auth_status (which only reports keyring/config setup), this performs a real token refresh against Google, so it detects expired or revoked (invalid_grant) refresh tokens — the account-wide sign-out that blocks every service. Reports per account: whether the token is currently valid, the mapped cause when it is not, how long ago it was authorized, and a warning as it approaches the 7-day refresh-token limit that applies to OAuth apps whose consent screen is still in "Testing" mode. Run it proactively to re-authorize on your own s…
gog_auth_services
List all Google services supported by gogcli and the OAuth scopes each requires.
gog_auth_add
Authorize a Google account via browser-based OAuth. Opens a browser window where the user must sign in and grant access. Blocks for up to 5 minutes waiting for the user to complete authorization. If the browser does not open automatically, a fallback URL is included in the response. Use gog_auth_list to check which accounts are already configured.
| Parameter | Type | Description |
|---|---|---|
email * | string | Google account email to authorize |
extraScopes | string | Additional raw OAuth scope URIs to request, comma-separated, on top of the ones `services` implies. Use for scopes no service covers — e.g. https://www.googleapis.com/auth/bigquery.readonly, require… |
services | string | Services to authorize: "all" or comma-separated list (e.g. "sheets,gmail,calendar"). Default: "drive,driveactivity,drivelabels". Prefer the narrowest set you need — requesting a service whose Google… |
gog_auth_add_url
Begin REMOTE/headless Google authorization (step 1 of 2). Returns a sign-in URL to open in any browser — no local server or terminal on the gogcli host is needed, so this works on a hosted deployment where the interactive gog_auth_add cannot. Hand the URL to the user; after they sign in, the browser is redirected to a localhost URL that fails to load — that is expected. They copy that full redirected URL (from the address bar) and you pass it to gog_auth_add_complete. The link is valid for 10 minutes. If you pass a custom `services` here, pass the SAME value to gog_auth_add_complete or the…
| Parameter | Type | Description |
|---|---|---|
email * | string | Google account email to authorize |
extraScopes | string | Additional raw OAuth scope URIs to request, comma-separated, on top of the ones `services` implies. Use for scopes no service covers — e.g. https://www.googleapis.com/auth/bigquery.readonly, require… |
services | string | Services to authorize: "all" or comma-separated list (e.g. "sheets,gmail,calendar"). Default: "drive,driveactivity,drivelabels". Prefer the narrowest set you need — requesting a service whose Google… |
gog_auth_add_complete
Complete REMOTE/headless Google authorization (step 2 of 2). Takes the full redirected localhost URL the user copied after finishing gog_auth_add_url, exchanges it for a refresh token, and stores it. Use the SAME `services` value you passed to gog_auth_add_url. Must run within 10 minutes of step 1 and against the same gogcli host.
| Parameter | Type | Description |
|---|---|---|
email * | string | Google account email being authorized (same as step 1) |
redirectUrl * | string | The full localhost redirect URL the user copied from the browser address bar after signing in (contains code and state; the page itself fails to load, which is expected). |
extraScopes | string | Extra OAuth scope URIs — MUST match the value passed to gog_auth_add_url, for the same reason `services` must: the two steps have to describe the same grant. |
services | string | Services authorized — MUST match the value passed to gog_auth_add_url. Default: "drive,driveactivity,drivelabels". |
gog_auth_run
Run any gog auth subcommand not covered by the other tools. Run `gog auth --help` for the full list of subcommands, or `gog auth <subcommand> --help` for flags on a specific subcommand. Only these subcommands are available: list, status, services, alias. Flags that override server safety controls (--readonly, --enable-commands, --disable-commands, --account, --access-token, --home, --client, --gmail-no-send, --no-input) and a bare "--" are refused. Local file paths (--out, --out-dir, --attach, --file, --*-file, @file JSON) must be inside GOG_FILE_ROOTS; subcommands that take a local path posit…
| Parameter | Type | Description |
|---|---|---|
args * | array | Additional positional args and flags |
subcommand * | string | The gog auth subcommand to run, e.g. "alias", "list", "status" |
gog_drive_ls
List files in a Google Drive folder (default: root).
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
allDrives | boolean | Include shared drives (default: true). Set false for My Drive only. |
folderId | string | Folder ID to list (default: root) |
max | number | Max results (default: 20) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
query | string | Drive query filter (e.g. "name contains 'budget'") |
view | string | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact (the default) drops owners, parents, thumbnailLink… |
gog_drive_search
Search Google Drive files by full-text query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
view | string | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact (the default) drops thumbnailLink — a URL a model… |
gog_drive_get
Get metadata for a Google Drive file.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
view | string | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact (the default) drops thumbnailLink — a URL a model… |
gog_drive_mkdir
Create a new folder in Google Drive.
| Parameter | Type | Description |
|---|---|---|
name * | string | Folder name |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_rename
Rename a file or folder in Google Drive.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File or folder ID |
newName * | string | New name |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_move
Move a file to a different folder in Google Drive.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID to move |
parentId * | string | Destination folder ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_delete
Move a Google Drive file to trash, or permanently delete it with permanent=true (irreversible). A permanent delete reads the file and asks the MCP host to show the user a confirmation prompt naming it first; nothing is deleted unless they accept. Moving to trash is recoverable and does not ask. If the client cannot show that prompt (no MCP elicitation, e.g. claude.ai), a two-step flow applies instead: call WITHOUT confirmToken and nothing is sent or changed — the result has status "confirmation-required", the full preview and a confirmToken. Follow its instruction (by default: show the previ…
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID to delete |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
confirmToken | string | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has see… |
permanent | boolean | Permanently delete instead of moving to trash (irreversible; asks the user first) |
gog_drive_extract_text
Extract readable TEXT from a Drive file — PDF, image, docx, or a native Google Doc — and return it to you directly (closing the webViewLink dead end). Accepts a Drive file id, including the id from gog_gmail_attachment's deliveredVia:"drive" response. For non-Docs it copies the file to a temporary Google Doc so Drive OCRs it (works for scanned PDFs too), exports plain text, then deletes the temp Doc. Operates entirely via the Drive API within the existing drive scope — no host filesystem, no scope widening. For a large file, page through with offset/maxChars.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | Drive file ID (e.g. the id returned by gog_gmail_attachment) |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
maxChars | integer | Max characters to return (default: all from offset) |
ocrLanguage | string | BCP-47 language hint for OCR of scanned/image PDFs (e.g. "en", "fr"). Optional. |
offset | integer | Character offset to start from (default: 0) |
gog_drive_read_bytes
Fetch a Drive file's raw bytes and return them base64-encoded as an embedded resource — the generic fallback for callers that want the file itself (to parse locally) rather than extracted text. Files over 8 MiB are refused (checked before downloading). For readable text from a PDF, prefer gog_drive_extract_text.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | Drive file ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_run
Run any gog drive subcommand not covered by the other tools. Run `gog drive --help` for the full list of subcommands, or `gog drive <subcommand> --help` for flags on a specific subcommand. Flags that override server safety controls (--readonly, --enable-commands, --disable-commands, --account, --access-token, --home, --client, --gmail-no-send, --no-input) and a bare "--" are refused. Local file paths (--out, --out-dir, --attach, --file, --*-file, @file JSON) must be inside GOG_FILE_ROOTS; subcommands that take a local path positionally (e.g. drive upload) are refused in favour of their dedicat…
| Parameter | Type | Description |
|---|---|---|
args * | array | Additional positional args and flags |
subcommand * | string | The gog drive subcommand to run, e.g. "copy", "download", "permissions" |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_download
Download a Drive file to the local filesystem. For Google Docs formats, specify an export format (pdf, csv, xlsx, pptx, txt, png, docx, md).
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID to download |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
format | string | Export format for Google Docs: pdf, csv, xlsx, pptx, txt, png, docx, md (default: inferred) |
out | string | Output file path (default: gogcli config dir) |
overwrite | boolean | Overwrite the output file if it already exists (gog refuses otherwise) |
gog_drive_upload
Upload a file to Drive. Supply it as EXACTLY ONE of: localPath (a path on the gog server's own filesystem — local stdio deployments only); blobKeys (a file you uploaded with gog_upload_slots — the way to hand a hosted server a photo or any sizeable file, up to 25 MiB); or content (the bytes, base64-encoded, carried with the request — small files only). The last two are what work when this server runs remotely from you and no path you can name exists on it. Use replace to replace the content of an existing file (preserves link/permissions), or convert to auto-convert to a Google format. P…
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
blobKeys | array | Hosted deployments: blobKeys from gog_upload_slots for files you have ALREADY PUT to their uploadUrl. This is how to send a file you hold (a photo, a PDF) when this server is remote: no base64 in the… |
content | string | The file's bytes, base64-encoded (standard alphabet, with padding) — upload a file you hold without it existing anywhere on the gog server. This is the only route that works when the caller and gog… |
convert | boolean | Auto-convert to native Google format based on file extension (create only) |
convertTo | string | Convert to a specific Google format: doc | sheet | slides (create only) |
ifVersion | integer | Replace only if the Drive file is still at this version (requires replace). On mismatch nothing is written and gog reports a conflict — re-read the file and reapply your edit. Read the current versi… |
keepRevisionForever | boolean | Keep the new head revision forever (binary files only) |
localPath | string | Path to the file to upload, resolved ON THE GOG SERVER's filesystem — NOT this client's. Only usable when gog runs on the same machine you do (local stdio); on a hosted deployment (e.g. mcp-host) th… |
mimeType | string | Override MIME type inference |
name | string | Override filename (create) or rename target (replace) |
parent | string | Destination folder ID (create only) |
replace | string | Replace content of an existing Drive file ID (preserves link/permissions). Unconditional unless ifVersion is set. |
gog_drive_sync_push
Recursively push a local directory's contents into an existing Drive folder — uploads new files, updates changed ones (matched by name + MD5), and creates missing subfolders. One-way and additive: it never deletes anything on Drive. Use dryRun to preview the planned actions first.
| Parameter | Type | Description |
|---|---|---|
localPath * | string | Local directory to push (its contents are mirrored into the parent folder). Must be inside the server's GOG_FILE_ROOTS directories (default ~/gogcli-mcp-files). |
parent * | string | Existing destination Drive folder ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
allDrives | boolean | Include shared drives (default: true; set false for My Drive only) |
dryRun | boolean | Preview the planned actions without making any changes |
gog_drive_copy
Copy a Drive file to a new file with the given name.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID to copy |
name * | string | Name for the new copy |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
parent | string | Destination folder ID |
gog_drive_url
Print shareable web URLs for one or more Drive files.
| Parameter | Type | Description |
|---|---|---|
fileIds * | array | One or more file IDs to get URLs for |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_permissions
List permissions on a Drive file.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
max | number | Max results (default: 100) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
gog_drive_drives_list
List shared drives (Team Drives) accessible to the account.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
all | boolean | Fetch all pages |
max | number | Max results (default: 100, max allowed: 100) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
query | string | Search query for filtering shared drives |
gog_drive_comments_list
List comments on a Drive file.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
all | boolean | Fetch all pages |
includeQuoted | boolean | Include the quoted content each comment is anchored to |
max | integer | Max results |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
since | string | Only return comments modified at or after this RFC3339 timestamp (e.g. 2026-06-01T00:00:00Z) |
gog_drive_comments_get
Get a single comment on a Drive file by ID.
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_comments_add
Add a new comment to a Drive file. Drive notifies the file's owner and everyone the text +mentions, so this reads the file and asks the MCP host to show the user a confirmation prompt with the file, the text and who is mentioned first; nothing is posted unless they accept. If the client cannot show that prompt (no MCP elicitation, e.g. claude.ai), a two-step flow applies instead: call WITHOUT confirmToken and nothing is sent or changed — the result has status "confirmation-required", the full preview and a confirmToken. Follow its instruction (by default: show the preview to the user verbati…
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment text |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
confirmToken | string | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has see… |
gog_drive_comments_update
Update the text of an existing comment.
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID to update |
content * | string | New comment text |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_comments_delete
Delete a comment from a Drive file.
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID to delete |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_comments_reply
Reply to an existing comment on a Drive file. Pass `action: "resolve"` or `"reopen"` to atomically flip the parent comment's resolved state via the Drive API's Reply.action field — avoids the older workaround of deleting the comment (which destroys review-thread context). Everyone on the thread and anyone the reply +mentions is notified, so this reads the file and the comment and asks the MCP host to show the user a confirmation prompt with both and the reply first; nothing is posted unless they accept. If the client cannot show that prompt (no MCP elicitation, e.g. claude.ai), a two-step fl…
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID to reply to |
content * | string | Reply text |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
action | string | Optional action on the parent comment alongside the reply |
confirmToken | string | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has see… |
gog_drive_comments_resolve
Resolve a comment on a Drive file (mark as done) without posting a reply. To resolve while replying, use gog_drive_comments_reply with action: "resolve".
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID to resolve |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_comments_reopen
Reopen a previously resolved comment on a Drive file. To reopen while replying, use gog_drive_comments_reply with action: "reopen".
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID to reopen |
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_du
Summarize Drive folder sizes (disk-usage style) starting from a folder.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
depth | number | Depth for folder totals (default: 1) |
max | number | Max folders to return (0 = unlimited; default: 50) |
noAllDrives | boolean | My Drive only — exclude shared drives (shared drives are included by default) |
order | string | Sort order (default: desc) |
parent | string | Folder ID to start from (default: root) |
sort | string | Sort key (default: size) |
gog_drive_tree
Print a read-only folder tree starting from a folder.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
depth | number | Max depth (0 = unlimited; default: 2) |
max | number | Max items to return (0 = unlimited; default: 0) |
noAllDrives | boolean | My Drive only — exclude shared drives (shared drives are included by default) |
parent | string | Folder ID to start from (default: root) |
gog_drive_changes_start_token
Get a Drive changes start page token — the cursor you pass to gog_drive_changes_list to enumerate changes since this point.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
drive | string | Shared drive ID for a shared-drive change log |
gog_drive_changes_list
List Drive changes since a page token (for sync/automation). Get the initial token from gog_drive_changes_start_token; the response includes a newStartPageToken to persist for the next poll.
| Parameter | Type | Description |
|---|---|---|
token * | string | Start page token or next page token |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
all | boolean | Fetch all pages |
drive | string | Shared drive ID for a shared-drive change log |
includeRemoved | boolean | Include removed changes |
max | number | Max results (default: 100) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
gog_drive_revisions_list
List a file's revision history — paged revision metadata plus provider export links for each revision.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
all | boolean | Fetch all pages |
max | integer | Max results |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
gog_drive_revisions_get
Get one revision of a Drive file by revision ID (metadata + export links). Find revision IDs with gog_drive_revisions_list.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
revisionId * | string | Revision ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_shortcut_create
Create a Drive shortcut to a file or folder inside a destination folder. Shortcuts are classified distinctly in listing/tree output and are never followed by tree scans.
| Parameter | Type | Description |
|---|---|---|
parent * | string | Destination folder ID for the shortcut |
targetId * | string | File or folder ID the shortcut points to |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
name | string | Shortcut name (default: the target's name) |
gog_drive_labels_list
List Drive label schemas available to the account.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
adminAccess | boolean | Use admin access for Workspace admin accounts |
language | string | BCP-47 language code |
max | integer | Max results |
minimumRole | string | Minimum role filter (e.g. READER, APPLIER, ORGANIZER) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
publishedOnly | boolean | Only list published labels |
view | string | Label view (default: LABEL_VIEW_BASIC) |
gog_drive_labels_get
Get a single Drive label schema by name (e.g. "labels/abc123").
| Parameter | Type | Description |
|---|---|---|
name * | string | Label schema name (e.g. labels/abc123) |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
adminAccess | boolean | Use admin access for Workspace admin accounts |
language | string | BCP-47 language code |
view | string | Label view (default: LABEL_VIEW_FULL) |
gog_drive_labels_file_list
List labels applied to a Drive file.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
max | number | Max results (default: 100) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
gog_drive_labels_file_apply
Apply or update a label on a Drive file, optionally setting field values. Each field flag takes "fieldId=value" entries (repeatable). selection/integer/date/user values may be comma-separated within one entry for multi-valued fields.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
labelId * | string | Label ID to apply |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
date | array | Date fields as fieldId=YYYY-MM-DD[,YYYY-MM-DD] (repeatable) |
fieldsJson | string | Simple JSON object of fieldId to string/number/bool/string-array values |
integer | array | Integer fields as fieldId=123[,456] (repeatable) |
selection | array | Selection fields as fieldId=choiceId[,choiceId] (repeatable) |
text | array | Text fields as fieldId=value (repeatable) |
unset | array | Field IDs to unset (repeatable) |
user | array | User fields as fieldId=email[,email] (repeatable) |
gog_drive_labels_file_remove
Remove a label from a Drive file.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File ID |
labelId * | string | Label ID to remove |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
gog_drive_activity
Query the Drive Activity API for audit events (edits, creates, deletes, moves, shares, etc.) scoped to a file or folder and/or time range.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
actions | string | Comma-separated action filters: edit,create,delete,move,rename,restore,comment,share,label,dlp,reference,settings |
all | boolean | Fetch all pages |
consolidate | boolean | Use Drive Activity legacy consolidation strategy |
file | string | Drive file ID to query |
filter | string | Raw Drive Activity filter expression appended with AND |
folder | string | Drive folder ID; includes descendants |
from | string | Lower activity time bound (RFC3339) |
max | number | Page size (default: 10) |
page | string | Deprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response. |
pageToken | string | Cursor for the NEXT page. Pass back the nextPageToken from a previous response verbatim, keeping the query and max identical: call once, then call again with pageToken=<that value>. A response with NO… |
to | string | Upper activity time bound (RFC3339) |
gog_drive_audit_sharing
Audit Drive sharing without mutation — find public (anyone-with-link) or external permissions across a folder tree or a single file.
| Parameter | Type | Description |
|---|---|---|
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
depth | number | Max folder depth (0 = unlimited; default: 2) |
externalOnly | boolean | Only report external user/group/domain permissions |
file | string | Audit one file ID instead of a folder tree |
internalDomain | array | Domains treated as internal (defaults to account email domain) |
max | number | Max files/folders to scan (0 = unlimited; default: 500) |
noAllDrives | boolean | My Drive only — exclude shared drives (shared drives are included by default) |
parent | string | Folder ID to scan (default: root) |
publicOnly | boolean | Only report anyone-with-link/public permissions |
gog_drive_audit_user
Audit Drive sharing without mutation — find permissions granted to a specific user across a folder tree or a single file.
| Parameter | Type | Description |
|---|---|---|
user * | string | User email to audit permissions for |
account | string | Google account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account. |
depth | number | Max folder depth (0 = unlimited; default: 2) |
file | string | Audit one file ID instead of a folder tree |
max | number | Max files/folders to scan (0 = unlimited; default: 500) |
noAllDrives | boolean | My Drive only — exclude shared drives (shared drives are included by default) |
parent | string | Folder ID to scan (default: root) |
gog_upload_slots
HOSTED DEPLOYMENTS: how to give this server a FILE you hold (a photo, a PDF, an .eml). This server runs remotely and cannot read paths on your machine, so call this first with the files' names: it returns one signed upload slot per file. PUT each file's bytes to its uploadUrl (each slot carries a ready `curl` command — replace the <path to …> placeholder; the Content-Type must be exactly the slot's mimeType), then pass the slots' blobKeys in the `blobKeys` parameter of the tool that takes the file: gog_gmail_send, gog_gmail_reply, gog_gmail_reply_all, gog_gmail_drafts_create, gog_gmail_dra…
| Parameter | Type | Description |
|---|---|---|
files * | array | One entry per file: {filename, mimeType?}. The filename is the name the recipient / Drive will show, and its extension is how gog types an attachment — give it the right one. |