当前位置: 首页 > Skill >

oo-googledrive

oo-googledrive

oo-googledrive

Google Drive (workspace.google.com). Use this skill for ANY Google Drive request — reading, creating, updating, and deleting data. Whenever a task involves Google Drive, use this skill instead of calling the API directly.

1.0.0 2026.11.19 705
获取Skill文件查看使用说明
作 者:陆安 许可证: 更新时间:2026.11.19
本文目录收起

Google Drive

Operate Google Drive through your OOMOL-connected account. This skill calls the googledrive connector with the oo CLI; OOMOL injects credentials server-side, so you never handle raw tokens.

Category: Storage, Productivity. Exposes 67 action(s).

Running an action

Assume the user has already installed the oo CLI, signed in, and connected Google Drive. Do not run oo auth login or open the connection URL proactively — just run the action. Fall back to First-time setup only when a command actually fails with an auth or connection error.

1. Inspect the contract to get the authoritative input/output schema before building a payload:

oo connector schema "googledrive" --action "<action_name>"

2. Run the action with a JSON payload that matches the input schema:

oo connector run "googledrive" --action "<action_name>" --data '<json>' --json
  • --data takes a JSON object string or @path/to/file.json; omit it to send {}.
  • The response is { "data": ..., "meta": { "executionId": "..." } }; the execution id lives under meta.executionId.

Each action below links to a reference file with its purpose and exact commands. Read the linked file, then fetch the live schema with oo connector schema before constructing --data.

Available actions

  • copy_file — Legacy compatibility alias of copy_file_advanced with a simplified input shape.
  • copy_file_advanced — Copy a Drive file and optionally override metadata such as name, parents, description, or properties.
  • create_comment — Create a comment on a Drive file, optionally with anchor or quoted file content.
  • create_drive — Create a new shared drive.
  • create_file — Create a Google Drive file with metadata only. Use a Google Workspace mime type to create an empty native file shell.
  • create_file_from_text — Create a new Drive file from text content and optional metadata.
  • create_folder — Create a Google Drive folder, optionally under one or more parent folders.
  • create_permission — Create a permission on a Drive file or shared drive to share it with users, groups, domains, or anyone.
  • create_reply — Create a reply under an existing Drive file comment, or use an action payload such as resolve or reopen.
  • create_team_drive — Legacy compatibility alias of create_drive for Team Drives.
  • delete_comment — Permanently delete a comment thread from a Drive file.
  • delete_drive — Permanently delete a shared drive.
  • delete_file — Legacy compatibility alias for permanently deleting a Drive file by ID.
  • delete_permission — Delete a permission from a Drive file or shared drive.
  • delete_reply — Permanently delete a specific reply from a Drive file comment thread.
  • delete_revision — Permanently delete a specific revision from a Drive file.
  • delete_team_drive — Legacy compatibility alias of delete_drive for Team Drives.
  • download_file — Download a Drive file by ID, or export a Google Workspace file when mimeType is provided. Returns a transit URL for the downloaded content.
  • download_file_operation — Compatibility alias of download_file.
  • download_file2 — Compatibility alias of download_file.
  • edit_file — Overwrite an existing Drive file with text content and optional metadata changes.
  • empty_trash — Permanently empty the user's trash or a shared drive's trash.
  • export_google_workspace_file — Export a Google Workspace file to the requested MIME type and return a transit URL for the exported content.
  • find_file — Search Google Drive files and folders with query, date, starred, trash, and shared-drive filters.
  • find_folder — Search Google Drive folders only, with the same query and pagination controls as find_file.
  • generate_ids — Generate one or more Drive file IDs for later create or copy requests.
  • get_about — Get Drive account information such as user details, quota, and supported capabilities.
  • get_app — Get metadata for a specific Google Drive app by app ID.
  • get_changes_start_page_token — Get the page token for monitoring future Drive changes.
  • get_comment — Get a specific comment on a Drive file by comment ID.
  • get_drive — Get a shared drive by drive ID.
  • get_file_metadata — Get metadata for a Drive file by ID, including mime type, parents, ownership, and trash state.
  • get_permission — Get a specific permission on a Drive file or shared drive by permission ID.
  • get_permission_id_for_email — Look up the Drive permission ID for an email address.
  • get_reply — Get a specific reply under a Drive file comment.
  • get_revision — Get metadata for a specific Drive file revision.
  • get_team_drive — Legacy compatibility alias of get_drive for Team Drives.
  • google_drive_delete_folder_or_file_action — Permanently delete a Drive file or folder by ID.
  • hide_drive — Hide a shared drive from the default Drive view.
  • list_access_proposals — List pending access proposals for a specific Drive file.
  • list_approvals — List approvals associated with a specific Drive file.
  • list_changes — List file and drive changes for incremental sync workflows.
  • list_comments — List comments on a Drive file with pagination.
  • list_file_labels — List the Drive labels currently applied to a file.
  • list_permissions — List permissions on a Drive file or shared drive.
  • list_replies — List replies under a Drive file comment with pagination.
  • list_revisions — List revision metadata for a Drive file.
  • list_shared_drives — List shared drives accessible to the connected account.
  • list_team_drives — Legacy compatibility alias of list_shared_drives for Team Drives.
  • modify_file_labels — Add, update, or remove Drive labels on a file.
  • move_file — Move or rename a Drive file by updating parents and/or name.
  • parse_file — Compatibility alias of download_file, including export behavior when mimeType is provided.
  • patch_permission — Patch specific fields on an existing Drive permission.
  • trash_file — Move a Drive file or folder to trash without permanently deleting it.
  • unhide_drive — Unhide a shared drive and restore it to the default Drive view.
  • untrash_file — Restore a Drive file or folder from trash.
  • update_comment — Update the content of an existing Drive file comment.
  • update_drive — Update metadata or restrictions on a shared drive.
  • update_file — Patch a Drive file with metadata and optional uploaded content.
  • update_file_metadata_patch — Update Drive file metadata fields with patch semantics.
  • update_file_revision_metadata — Update revision metadata flags such as publish or keep-forever on a specific Drive file revision.
  • update_permission — Compatibility alias of update_permission_patch; Google Drive v3 uses PATCH semantics.
  • update_permission_patch — Patch an existing Drive permission using structured permission fields.
  • update_reply — Update the content of an existing reply on a Drive file comment.
  • update_team_drive — Legacy compatibility alias of update_drive for Team Drives.
  • upload_file — Upload a new Drive file with binary or text content and optional metadata.
  • upload_update_file — Replace the content of an existing Drive file and optionally update metadata.

Safety

  • Read actions (get / list / search) are safe to run directly.
  • Create, update, send, or post actions change Google Drive state — confirm the exact payload and effect with the user before running.
  • Delete or remove actions are destructive — always confirm the target and get explicit approval first.

First-time setup

These are one-time steps — do not repeat them on every call. Run a step only when a command fails for the matching reason.

  • oo: command not found — install the oo CLI (other platforms: https://cli.oomol.com/install-guide.md):

    curl -fsSL https://cli.oomol.com/install.sh | bash    # macOS / Linux
    
    irm https://cli.oomol.com/install.ps1 | iex           # Windows PowerShell
    
  • Not signed in / authentication error — sign in to your OOMOL account once:

    oo auth login
    
  • scope_missing / credential_expired / app_not_ready / app_not_found — Google Drive is not connected, or the connection expired or lacks a scope. Connect once (auth type: OAuth2) at:

    https://console.oomol.com/app-connections?provider=googledrive
    
  • HTTP 402 / OOMOL_INSUFFICIENT_CREDIT — billing stop. Recharge at https://console.oomol.com/billing/token-recharge before retrying.

Resources

  • Google Drive homepage: https://workspace.google.com/products/drive/

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件

相关 Skill

更多
Cloud Cloud 选择、整理、同步、共享并备份个人文件至 iCloud、Google Drive、Dropbox 和 OneDrive。
Workspace Sync & Backup Workspace Sync & Backup 使用 rclone 同步代理工作区与云存储(Dropbox、Google Drive、S3 等)
GDrive Owncloud sync GDrive Owncloud sync 检查 Google Drive 中的新文件是否已同步到 OwnCloud 并发送邮件报告
Backup & Recovery Automation Backup & Recovery Automation 使用 rClone 实现 OpenClaw 备份与恢复自动化。每日备份至 Google Drive,保留 20 天轮换。
Todo4google Todo4google 管理待办事项,记录工作日志,与 Google Tasks 同步。根据本地待办创建 Google 任务并更新状态。将待办文件上传至 Google Drive 归档。