google-drive by membranedev/application-skills
npx skills add https://github.com/membranedev/application-skills --skill google-driveGoogle Drive 是一项基于云的文件存储和同步服务。个人和团队使用它来在任何设备上在线存储、访问和共享文件。可以将其视为云端的虚拟硬盘。
官方文档:https://developers.google.com/drive
此技能使用 Membrane CLI 与 Google Drive 交互。Membrane 会自动处理身份验证和凭据刷新——因此您可以专注于集成逻辑,而无需处理身份验证的底层细节。
安装 Membrane CLI,以便您可以从终端运行 membrane 命令:
npm install -g @membranehq/cli
membrane login --tenant
浏览器窗口将打开以进行身份验证。
无头环境: 运行该命令,复制打印出的 URL 供用户在浏览器中打开,然后使用 membrane login complete <code> 完成验证。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
创建新连接:
membrane search google-drive --elementType=connector --json
从 output.items[0].element?.id 中获取连接器 ID,然后:
membrane connect --connectorId=CONNECTOR_ID --json
用户在浏览器中完成身份验证。输出中包含新的连接 ID。
当您不确定连接是否已存在时:
检查现有连接:
membrane connection list --json
如果存在 Google Drive 连接,请记下其 connectionId。
当您知道要做什么但不确定确切的 action ID 时:
membrane action list --intent=QUERY --connectionId=CONNECTION_ID --json
这将返回包含 id 和 inputSchema 的操作对象,以便您知道如何运行它。
| 名称 | 键 | 描述 |
|---|---|---|
| 列出文件 | list-files | 列出用户在 Google Drive 中的文件,支持可选过滤和排序 |
| 列出共享云端硬盘 | list-shared-drives | 列出用户的共享云端硬盘 |
| 列出权限 | list-permissions | 列出文件的权限 |
| 列出评论 | list-comments | 列出文件的评论 |
| 列出更改 | list-changes | 列出自给定起始令牌以来用户云端硬盘中的更改 |
| 获取文件 | get-file | 通过 ID 获取文件的元数据 |
| 获取共享云端硬盘 | get-shared-drive | 通过 ID 获取共享云端硬盘的元数据 |
| 获取权限 | get-permission | 通过 ID 获取特定权限 |
| 获取关于信息 | get-about | 获取有关用户及其云端硬盘的信息 |
| 获取起始页面令牌 | get-start-page-token | 获取用于列出未来更改的起始页面令牌 |
| 创建文件元数据 | create-file-metadata | 创建一个新文件(仅元数据,无内容)。 |
| 创建文件夹 | create-folder | 在 Google Drive 中创建一个新文件夹 |
| 创建权限 | create-permission | 通过为用户、群组、域或任何人创建权限来共享文件 |
| 创建共享云端硬盘 | create-shared-drive | 创建一个新的共享云端硬盘 |
| 创建评论 | create-comment | 在文件上创建评论 |
| 更新文件 | update-file | 更新文件的元数据(名称、描述等) |
| 更新权限 | update-permission | 更新现有权限(更改角色或过期时间) |
| 更新共享云端硬盘 | update-shared-drive | 更新共享云端硬盘的元数据 |
| 删除文件 | delete-file | 永久删除文件(绕过回收站) |
| 删除权限 | delete-permission | 从文件中移除权限(取消共享) |
membrane action run --connectionId=CONNECTION_ID ACTION_ID --json
要传递 JSON 参数:
membrane action run --connectionId=CONNECTION_ID ACTION_ID --json --input "{ \"key\": \"value\" }"
当现有操作无法满足您的用例时,您可以通过 Membrane 的代理直接向 Google Drive API 发送请求。Membrane 会自动将基础 URL 附加到您提供的路径,并注入正确的身份验证标头——包括在凭据过期时透明的刷新。
membrane request CONNECTION_ID /path/to/endpoint
常用选项:
| 标志 | 描述 |
|---|---|
-X, --method | HTTP 方法(GET、POST、PUT、PATCH、DELETE)。默认为 GET |
-H, --header | 添加请求头(可重复),例如 -H "Accept: application/json" |
-d, --data | 请求体(字符串) |
--json | 发送 JSON 请求体并设置 Content-Type: application/json 的简写 |
--rawData | 按原样发送请求体,不做任何处理 |
--query | 查询字符串参数(可重复),例如 --query "limit=10" |
--pathParam | 路径参数(可重复),例如 --pathParam "id=123" |
membrane action list --intent=QUERY(将 QUERY 替换为您的意图)以查找现有操作。预构建的操作处理了原始 API 调用可能遗漏的分页、字段映射和边界情况。每周安装数
772
代码仓库
GitHub 星标数
18
首次出现
13 天前
安全审计
安装于
opencode772
gemini-cli772
amp772
cline772
github-copilot772
codex772
Google Drive is a cloud-based file storage and synchronization service. It's used by individuals and teams to store, access, and share files online from any device. Think of it as a virtual hard drive in the cloud.
Official docs: https://developers.google.com/drive
This skill uses the Membrane CLI to interact with Google Drive. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing.
Install the Membrane CLI so you can run membrane from the terminal:
npm install -g @membranehq/cli
membrane login --tenant
A browser window opens for authentication.
Headless environments: Run the command, copy the printed URL for the user to open in a browser, then complete with membrane login complete <code>.
Create a new connection:
membrane search google-drive --elementType=connector --json
Take the connector ID from output.items[0].element?.id, then:
membrane connect --connectorId=CONNECTOR_ID --json
The user completes authentication in the browser. The output contains the new connection id.
When you are not sure if connection already exists:
Check existing connections:
membrane connection list --json
If a Google Drive connection exists, note its connectionId
When you know what you want to do but not the exact action ID:
membrane action list --intent=QUERY --connectionId=CONNECTION_ID --json
This will return action objects with id and inputSchema in it, so you will know how to run it.
| Name | Key | Description |
|---|---|---|
| List Files | list-files | Lists the user's files in Google Drive with optional filtering and sorting |
| List Shared Drives | list-shared-drives | Lists the user's shared drives |
| List Permissions | list-permissions | Lists a file's permissions |
| List Comments | list-comments | Lists comments on a file |
| List Changes | list-changes | Lists changes in the user's Drive since a given start token |
| Get File | get-file | Gets a file's metadata by ID |
| Get Shared Drive | get-shared-drive | Gets a shared drive's metadata by ID |
| Get Permission | get-permission | Gets a specific permission by ID |
| Get About | get-about |
membrane action run --connectionId=CONNECTION_ID ACTION_ID --json
To pass JSON parameters:
membrane action run --connectionId=CONNECTION_ID ACTION_ID --json --input "{ \"key\": \"value\" }"
When the available actions don't cover your use case, you can send requests directly to the Google Drive API through Membrane's proxy. Membrane automatically appends the base URL to the path you provide and injects the correct authentication headers — including transparent credential refresh if they expire.
membrane request CONNECTION_ID /path/to/endpoint
Common options:
| Flag | Description |
|---|---|
-X, --method | HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |
-H, --header | Add a request header (repeatable), e.g. -H "Accept: application/json" |
-d, --data | Request body (string) |
--json | Shorthand to send a JSON body and set Content-Type: application/json |
--rawData |
membrane action list --intent=QUERY (replace QUERY with your intent) to find existing actions before writing custom API calls. Pre-built actions handle pagination, field mapping, and edge cases that raw API calls miss.Weekly Installs
772
Repository
GitHub Stars
18
First Seen
13 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode772
gemini-cli772
amp772
cline772
github-copilot772
codex772
Next.js 最佳实践指南:文件约定、RSC边界、异步模式与性能优化
45,400 周安装
设计增长循环框架:54位产品负责人教你构建病毒式增长引擎
758 周安装
Parallel Deep Research:AI 驱动的深度研究工具,实现自动化详尽分析与报告生成
758 周安装
股票分析工具 - 一键生成NVDA、TSLA、AAPL等股票情感分析报告
759 周安装
spec-miner:AI代码规范挖掘器 - 从代码库自动提取需求与文档
760 周安装
销售线索筛选框架指南:提升转化率,优化销售流程 | 销售效率工具
760 周安装
hairy-utils:JavaScript/TypeScript 核心工具库 | 异步处理、类型检查、函数式编程
761 周安装
| Gets information about the user and their Drive |
| Get Start Page Token | get-start-page-token | Gets the starting page token for listing future changes |
| Create File Metadata | create-file-metadata | Creates a new file (metadata only, no content). |
| Create Folder | create-folder | Creates a new folder in Google Drive |
| Create Permission | create-permission | Shares a file by creating a permission for a user, group, domain, or anyone |
| Create Shared Drive | create-shared-drive | Creates a new shared drive |
| Create Comment | create-comment | Creates a comment on a file |
| Update File | update-file | Updates a file's metadata (name, description, etc.) |
| Update Permission | update-permission | Updates an existing permission (change role or expiration) |
| Update Shared Drive | update-shared-drive | Updates a shared drive's metadata |
| Delete File | delete-file | Permanently deletes a file (bypasses trash) |
| Delete Permission | delete-permission | Removes a permission from a file (unshare) |
| Send the body as-is without any processing |
--query | Query-string parameter (repeatable), e.g. --query "limit=10" |
--pathParam | Path parameter (repeatable), e.g. --pathParam "id=123" |