360 Secure SkillHub
360 安全技能中心

recipe-organize-drive-folder

该 Skill 提供通过 gws CLI 操作 Google Drive 的步骤,用于创建项目文件夹与子文件夹、将现有文件移动到目标文件夹,并列出文件夹内容验证结构。使用前需加载 gws-drive 技能,并确保环境中有 gws 命令。

googleworkspace
热度 71.93
最近更新 2026-10-18 17:15:33
分类:效率依赖:代码执行 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add googleworkspace/cli/recipe-organize-drive-folder
Metadata
name
recipe-organize-drive-folder
description
Create a Google Drive folder structure and move files into the right locations.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-drive"]}}}

Organize Files into Google Drive Folders

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

Create a Google Drive folder structure and move files into the right locations.

Steps

  1. Create a project folder: gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}'
  2. Create sub-folders: gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}'
  3. Move existing files into folder: gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}'
  4. Verify structure: gws drive files list --params '{"q": "FOLDER_ID in parents"}' --format table