OpenParable
Skip to content
← Back to skills

Gog Drive

Apps & Automation
gog-drive

Gog Drive is an Agent Skill for apps & automation published in the openclaw/gogcli repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Google Drive operations through gog.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/openclaw/gogcli/blob/HEAD/.agents/skills/gog-drive/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gog-drive, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Google Drive

Use gog for Google Drive operations. Read ../gog/SKILL.md first for shared auth, output, safety, and live-write rules.

Safe start

gog auth list --check --json --no-input
gog schema drive --json
gog --readonly --account [email protected] drive ls --max 20 --json --wrap-untrusted
  • Select the account explicitly with --account.
  • Use --json --wrap-untrusted for agent-readable Google content.
  • Use --readonly when the task must not mutate Google data.
  • Use --no-input in automation and --dry-run before supported writes.
  • Confirm the exact account, object, and mutation before any write or delete.

Commands

CommandPurpose
activityQuery Drive Activity audit events
auditAudit Drive sharing without mutation
bulkBulk Drive permission operations
changesTrack Drive changes for sync and automation
commentsManage comments on files
copyCopy a file
deleteMove a file to trash (use --permanent to delete forever)
downloadDownload a file (exports Google Docs formats)
drivesList shared drives (Team Drives)
duSummarize Drive folder sizes
getGet file metadata
inventoryExport a read-only Drive inventory
labelsRead and modify Drive labels
lsList files in a folder (default: root)
mkdirCreate a folder
moveMove a file to a different folder
permissionsList permissions on a file
rawDump raw Google Drive API response as JSON (Files.Get; lossless; for scripting and LLM consumption)
renameRename a file or folder
revisionsList and inspect file revisions
searchFull-text search across Drive
shareShare a file or folder
shortcutManage shortcuts to Drive files and folders
treePrint a read-only folder tree
unshareRemove a permission from a file
uploadUpload a file
urlPrint web URLs for files

Run gog drive <command> --help for flags and gog schema drive <command> --json for the machine-readable contract. Do not guess command syntax.