gog-drive
Google Drive through gog. Use for Drive file search, uploads, downloads, sharing, folders, and metadata; use gog-drive-audit for a sharing audit.
- License 许可
- MIT
- 所属仓库
- openclaw/gogcli
- 最近更新
- 2026-11-14
- Stars
- ★ 8.6k
- Forks
- 731
01 前言 Front Matter
- name
- gog-drive
- description
- Google Drive through gog. Use for Drive file search, uploads, downloads, sharing, folders, and metadata; use gog-drive-audit for a sharing audit.
02 资源文件 1
- 参考文档agents/openai.yaml183 B
03 SKILL.md 正文
Google Drive
<!-- Generated by scripts/gen-agent-skills.mjs; do not edit. -->
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 user@example.com drive ls --max 20 --json --wrap-untrusted
- Select the account explicitly with
--account. - Use
--json --wrap-untrustedfor agent-readable Google content. - Use
--readonlywhen the task must not mutate Google data. - Use
--no-inputin automation and--dry-runbefore supported writes. - Confirm the exact account, object, and mutation before any write or delete.
Commands
| Command | Purpose |
|---|---|
activity |
Query Drive Activity audit events |
audit |
Audit Drive sharing without mutation |
bulk |
Bulk Drive permission operations |
changes |
Track Drive changes for sync and automation |
comments |
Manage comments on files |
copy |
Copy a file |
delete |
Move a file to trash (use --permanent to delete forever) |
download |
Download a file (exports Google Docs formats) |
drives |
List shared drives (Team Drives) |
du |
Summarize Drive folder sizes |
get |
Get file metadata |
inventory |
Export a read-only Drive inventory |
labels |
Read and modify Drive labels |
ls |
List files in a folder (default: root) |
mkdir |
Create a folder |
move |
Move a file to a different folder |
permissions |
List permissions on a file |
raw |
Dump raw Google Drive API response as JSON (Files.Get; lossless; for scripting and LLM consumption) |
rename |
Rename a file or folder |
revisions |
List and inspect file revisions |
search |
Full-text search across Drive |
share |
Share a file or folder |
shortcut |
Manage shortcuts to Drive files and folders |
sync |
Reconcile local files with Drive |
tree |
Print a read-only folder tree |
unshare |
Remove a permission from a file |
upload |
Upload a file |
url |
Print 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.
04 同仓库更多 Skills
gog
Use the gog CLI when Google connectors lack an operation, shell automation needs stable JSON, or local Google auth needs inspection. Shared account, auth, output, and safety guidance for all gog service skills.
gog-youtube
YouTube through gog. Use for YouTube search, videos, channels, activities, comments, playlists, and subscriptions.
gog-weekly-digest
Read-only weekly digest across Google Calendar, Gmail, and Tasks with gog.
gog-tasks
Google Tasks through gog. Use for Google Tasks lists, task creation, updates, completion, and materialized repeats.
gog-slides
Google Slides through gog. Use for presentations, slides, text, images, speaker notes, and exports.
gog-sites
Google Sites through gog. Use for finding Google Sites in Drive, reading site metadata, and printing editor URLs; use gog-drive for file sharing.