gogcli-mcp-drive

v4.12.0
io.github.chrischall/gogcli-mcp-drive Checked 5 hours ago Published 22 days ago

Google 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.

ParameterTypeDescription
email *stringGoogle account email to authorize
extraScopesstringAdditional 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…
servicesstringServices 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…

ParameterTypeDescription
email *stringGoogle account email to authorize
extraScopesstringAdditional 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…
servicesstringServices 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.

ParameterTypeDescription
email *stringGoogle account email being authorized (same as step 1)
redirectUrl *stringThe 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).
extraScopesstringExtra 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.
servicesstringServices 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…

ParameterTypeDescription
args *arrayAdditional positional args and flags
subcommand *stringThe gog auth subcommand to run, e.g. "alias", "list", "status"

gog_drive_ls

List files in a Google Drive folder (default: root).

ParameterTypeDescription
accountstringGoogle 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.
allDrivesbooleanInclude shared drives (default: true). Set false for My Drive only.
folderIdstringFolder ID to list (default: root)
maxnumberMax results (default: 20)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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…
querystringDrive query filter (e.g. "name contains 'budget'")
viewstringResponse 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_get

Get metadata for a Google Drive file.

ParameterTypeDescription
fileId *stringFile ID
accountstringGoogle 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.
viewstringResponse 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.

ParameterTypeDescription
name *stringFolder name
accountstringGoogle 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.

ParameterTypeDescription
fileId *stringFile or folder ID
newName *stringNew name
accountstringGoogle 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.

ParameterTypeDescription
fileId *stringFile ID to move
parentId *stringDestination folder ID
accountstringGoogle 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…

ParameterTypeDescription
fileId *stringFile ID to delete
accountstringGoogle 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.
confirmTokenstringONLY 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…
permanentbooleanPermanently delete instead of moving to trash (irreversible; asks the user first)

gog_drive_share

Share a Google Drive file or folder. Granting access is the risk even though no email is sent (gog does not notify by default), so this reads the file and asks the MCP host to show the user a confirmation prompt naming it, who gets access and with what role; nothing is shared 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 prev…

ParameterTypeDescription
fileId *stringFile or folder ID
to *stringShare target type
accountstringGoogle 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.
confirmTokenstringONLY 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…
domainstringDomain (required when to=domain)
emailstringUser email (required when to=user)
rolestringPermission role (default: reader)

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.

ParameterTypeDescription
fileId *stringDrive file ID (e.g. the id returned by gog_gmail_attachment)
accountstringGoogle 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.
maxCharsintegerMax characters to return (default: all from offset)
ocrLanguagestringBCP-47 language hint for OCR of scanned/image PDFs (e.g. "en", "fr"). Optional.
offsetintegerCharacter 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.

ParameterTypeDescription
fileId *stringDrive file ID
accountstringGoogle 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…

ParameterTypeDescription
args *arrayAdditional positional args and flags
subcommand *stringThe gog drive subcommand to run, e.g. "copy", "download", "permissions"
accountstringGoogle 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).

ParameterTypeDescription
fileId *stringFile ID to download
accountstringGoogle 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.
formatstringExport format for Google Docs: pdf, csv, xlsx, pptx, txt, png, docx, md (default: inferred)
outstringOutput file path (default: gogcli config dir)
overwritebooleanOverwrite 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…

ParameterTypeDescription
accountstringGoogle 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.
blobKeysarrayHosted 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…
contentstringThe 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…
convertbooleanAuto-convert to native Google format based on file extension (create only)
convertTostringConvert to a specific Google format: doc | sheet | slides (create only)
ifVersionintegerReplace 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…
keepRevisionForeverbooleanKeep the new head revision forever (binary files only)
localPathstringPath 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…
mimeTypestringOverride MIME type inference
namestringOverride filename (create) or rename target (replace)
parentstringDestination folder ID (create only)
replacestringReplace 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.

ParameterTypeDescription
localPath *stringLocal 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 *stringExisting destination Drive folder ID
accountstringGoogle 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.
allDrivesbooleanInclude shared drives (default: true; set false for My Drive only)
dryRunbooleanPreview the planned actions without making any changes

gog_drive_copy

Copy a Drive file to a new file with the given name.

ParameterTypeDescription
fileId *stringFile ID to copy
name *stringName for the new copy
accountstringGoogle 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.
parentstringDestination folder ID

gog_drive_url

Print shareable web URLs for one or more Drive files.

ParameterTypeDescription
fileIds *arrayOne or more file IDs to get URLs for
accountstringGoogle 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.

ParameterTypeDescription
fileId *stringFile ID
accountstringGoogle 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.
maxnumberMax results (default: 100)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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_unshare

Remove a permission from a Drive file. Get the permissionId from gog_drive_permissions.

ParameterTypeDescription
fileId *stringFile ID
permissionId *stringPermission ID to remove
accountstringGoogle 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_drives_list

List shared drives (Team Drives) accessible to the account.

ParameterTypeDescription
accountstringGoogle 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.
allbooleanFetch all pages
maxnumberMax results (default: 100, max allowed: 100)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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…
querystringSearch query for filtering shared drives

gog_drive_comments_list

List comments on a Drive file.

ParameterTypeDescription
fileId *stringFile ID
accountstringGoogle 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.
allbooleanFetch all pages
includeQuotedbooleanInclude the quoted content each comment is anchored to
maxintegerMax results
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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…
sincestringOnly 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.

ParameterTypeDescription
commentId *stringComment ID
fileId *stringFile ID
accountstringGoogle 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…

ParameterTypeDescription
content *stringComment text
fileId *stringFile ID
accountstringGoogle 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.
confirmTokenstringONLY 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.

ParameterTypeDescription
commentId *stringComment ID to update
content *stringNew comment text
fileId *stringFile ID
accountstringGoogle 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.

ParameterTypeDescription
commentId *stringComment ID to delete
fileId *stringFile ID
accountstringGoogle 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…

ParameterTypeDescription
commentId *stringComment ID to reply to
content *stringReply text
fileId *stringFile ID
accountstringGoogle 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.
actionstringOptional action on the parent comment alongside the reply
confirmTokenstringONLY 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".

ParameterTypeDescription
commentId *stringComment ID to resolve
fileId *stringFile ID
accountstringGoogle 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".

ParameterTypeDescription
commentId *stringComment ID to reopen
fileId *stringFile ID
accountstringGoogle 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.

ParameterTypeDescription
accountstringGoogle 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.
depthnumberDepth for folder totals (default: 1)
maxnumberMax folders to return (0 = unlimited; default: 50)
noAllDrivesbooleanMy Drive only — exclude shared drives (shared drives are included by default)
orderstringSort order (default: desc)
parentstringFolder ID to start from (default: root)
sortstringSort key (default: size)

gog_drive_tree

Print a read-only folder tree starting from a folder.

ParameterTypeDescription
accountstringGoogle 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.
depthnumberMax depth (0 = unlimited; default: 2)
maxnumberMax items to return (0 = unlimited; default: 0)
noAllDrivesbooleanMy Drive only — exclude shared drives (shared drives are included by default)
parentstringFolder 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.

ParameterTypeDescription
accountstringGoogle 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.
drivestringShared 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.

ParameterTypeDescription
token *stringStart page token or next page token
accountstringGoogle 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.
allbooleanFetch all pages
drivestringShared drive ID for a shared-drive change log
includeRemovedbooleanInclude removed changes
maxnumberMax results (default: 100)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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.

ParameterTypeDescription
fileId *stringFile ID
accountstringGoogle 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.
allbooleanFetch all pages
maxintegerMax results
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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.

ParameterTypeDescription
fileId *stringFile ID
revisionId *stringRevision ID
accountstringGoogle 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.

ParameterTypeDescription
parent *stringDestination folder ID for the shortcut
targetId *stringFile or folder ID the shortcut points to
accountstringGoogle 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.
namestringShortcut name (default: the target's name)

gog_drive_labels_list

List Drive label schemas available to the account.

ParameterTypeDescription
accountstringGoogle 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.
adminAccessbooleanUse admin access for Workspace admin accounts
languagestringBCP-47 language code
maxintegerMax results
minimumRolestringMinimum role filter (e.g. READER, APPLIER, ORGANIZER)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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…
publishedOnlybooleanOnly list published labels
viewstringLabel view (default: LABEL_VIEW_BASIC)

gog_drive_labels_get

Get a single Drive label schema by name (e.g. "labels/abc123").

ParameterTypeDescription
name *stringLabel schema name (e.g. labels/abc123)
accountstringGoogle 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.
adminAccessbooleanUse admin access for Workspace admin accounts
languagestringBCP-47 language code
viewstringLabel view (default: LABEL_VIEW_FULL)

gog_drive_labels_file_list

List labels applied to a Drive file.

ParameterTypeDescription
fileId *stringFile ID
accountstringGoogle 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.
maxnumberMax results (default: 100)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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.

ParameterTypeDescription
fileId *stringFile ID
labelId *stringLabel ID to apply
accountstringGoogle 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.
datearrayDate fields as fieldId=YYYY-MM-DD[,YYYY-MM-DD] (repeatable)
fieldsJsonstringSimple JSON object of fieldId to string/number/bool/string-array values
integerarrayInteger fields as fieldId=123[,456] (repeatable)
selectionarraySelection fields as fieldId=choiceId[,choiceId] (repeatable)
textarrayText fields as fieldId=value (repeatable)
unsetarrayField IDs to unset (repeatable)
userarrayUser fields as fieldId=email[,email] (repeatable)

gog_drive_labels_file_remove

Remove a label from a Drive file.

ParameterTypeDescription
fileId *stringFile ID
labelId *stringLabel ID to remove
accountstringGoogle 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.

ParameterTypeDescription
accountstringGoogle 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.
actionsstringComma-separated action filters: edit,create,delete,move,rename,restore,comment,share,label,dlp,reference,settings
allbooleanFetch all pages
consolidatebooleanUse Drive Activity legacy consolidation strategy
filestringDrive file ID to query
filterstringRaw Drive Activity filter expression appended with AND
folderstringDrive folder ID; includes descendants
fromstringLower activity time bound (RFC3339)
maxnumberPage size (default: 10)
pagestringDeprecated alias for pageToken, accepted so existing callers keep working. Use pageToken — it matches the nextPageToken field in the response.
pageTokenstringCursor 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…
tostringUpper 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.

ParameterTypeDescription
accountstringGoogle 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.
depthnumberMax folder depth (0 = unlimited; default: 2)
externalOnlybooleanOnly report external user/group/domain permissions
filestringAudit one file ID instead of a folder tree
internalDomainarrayDomains treated as internal (defaults to account email domain)
maxnumberMax files/folders to scan (0 = unlimited; default: 500)
noAllDrivesbooleanMy Drive only — exclude shared drives (shared drives are included by default)
parentstringFolder ID to scan (default: root)
publicOnlybooleanOnly 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.

ParameterTypeDescription
user *stringUser email to audit permissions for
accountstringGoogle 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.
depthnumberMax folder depth (0 = unlimited; default: 2)
filestringAudit one file ID instead of a folder tree
maxnumberMax files/folders to scan (0 = unlimited; default: 500)
noAllDrivesbooleanMy Drive only — exclude shared drives (shared drives are included by default)
parentstringFolder 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…

ParameterTypeDescription
files *arrayOne 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.