数据库32k · #9162
gws-drive
它能做什么
这个智能体可以帮你管理 Google Drive 中的文件。你可以用它上传文件、创建副本、搜索文件,还能管理文件夹和共享云端硬盘。
适用场景
- ✓当你需要把新文档上传到 Drive 时。
- ✓当你想找一个忘了保存在哪里的文件时。
- ✓当你需要为重要文件创建一个副本时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/gws-drive/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-drive/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill gws-drive
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-drive/SKILL.md -o SKILL.md
可以这样问 AI
“把文件“report.pdf”上传到“Documents”文件夹。”
每周 5 个新技能,1 分钟读完。
工作原理
它会连接到你的 Google Drive,执行你要求的操作。你告诉它想做什么(比如“列出文件”),它就会在你的 Drive 上完成。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
drive (v3)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws drive <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+upload |
Upload a file with automatic metadata |
API Resources
about
get— Gets information about the user, the user's Drive, and system capabilities. For more information, see Return user info. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.
accessproposals
get— Retrieves an access proposal by ID. For more information, see Manage pending access proposals.list— List the access proposals on a file. For more information, see Manage pending access proposals. Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.resolve— Approves or denies an access proposal. For more information, see Manage pending access proposals.
approvals
get— Gets an Approval by ID.list— Lists the Approvals on a file.
apps
get— Gets a specific app. For more information, see Return user info.list— Lists a user's installed apps. For more information, see Return user info.
changes
getStartPageToken— Gets the starting pageToken for listing future changes. For more information, see Retrieve changes.list— Lists the changes for a user or shared drive. For more information, see Retrieve changes.watch— Subscribes to changes for a user. For more information, see Notifications for resource changes.
channels
stop— Stops watching resources through this channel. For more information, see Notifications for resource changes.
comments
create— Creates a comment on a file. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.delete— Deletes a comment. For more information, see Manage comments and replies.get— Gets a comment by ID. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.list— Lists a file's comments. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.update— Updates a comment with patch semantics. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.
drives
create— Creates a shared drive. For more information, see Manage shared drives.
…
常见问题
我需要连接 Google Drive 吗?
需要。你要授权这个智能体访问你的 Google Drive 账户,它才能帮你管理文件。
我可以新建文件夹吗?
可以,你可以新建文件夹来整理文件。
怎么搜索文件?
你可以要求列出文件,也可以按名称、类型或内容来搜索,使用对应的命令即可。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9162
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …