跳到正文
cccskills
免费在 GitHub 公开

gws-drive

Manage Google Drive files, folders, and shared drives through gws commands. Search, upload, download, and export files, review comments, and manage sharing permissions to organize documents and control who can access them.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Google Drive: Manage files, folders, and shared drives.

查看安装方法

适用场景

  • Find files and folders in Google Drive
  • Upload files and export documents
  • Review and update sharing permissions
  • Check comments and revision history

包含的文件(1)

  • SKILL.md13.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

drive (v3)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws drive <resource> <method> [flags]

Helper Commands

CommandDescription
+uploadUpload 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: The fields parameter must be set. To return the exact fields you need, see Return specific fields.

accessproposals

approvals

  • get — Gets an Approval by ID.
  • list — Lists the Approvals on a file.

apps

changes

channels

comments

drives

  • create — Creates a shared drive. For more information, see Manage shared drives.
  • get — Gets a shared drive's metadata by ID. For more information, see Manage shared drives.
  • hide — Hides a shared drive from the default view. For more information, see Manage shared drives.
  • list — Lists the user's shared drives. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide.
  • unhide — Restores a shared drive to the default view. For more information, see Manage shared drives.
  • update — Updates the metadata for a shared drive. For more information, see Manage shared drives.

files

  • copy — Creates a copy of a file and applies any requested updates with patch semantics. For more information, see Create and manage files.
  • create — Creates a file. For more information, see Create and manage files. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types: */* (Specify a valid MIME type, rather than the literal */* value. The literal */* is only used to indicate that any valid MIME type can be uploaded.
  • download — Downloads the content of a file. For more information, see Download and export files. Operations are valid for 24 hours from the time of creation.
  • export — Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see Download and export files. Note that the exported content is limited to 10 MB.
  • generateIds — Generates a set of file IDs which can be provided in create or copy requests. For more information, see Create and manage files.
  • get — Gets a file's metadata or content by ID. For more information, see Search for files and folders. If you provide the URL parameter alt=media, then the response includes the file contents in the response body. Downloading content with alt=media only works if the file is stored in Drive.
  • list — Lists the user's files. For more information, see Search for files and folders. This method accepts the q parameter, which is a search query combining one or more search terms. This method returns all files by default, including trashed files. If you don't want trashed files to appear in the list, use the trashed=false query parameter to remove trashed files from the results.
  • listLabels — Lists the labels on a file. For more information, see List labels on a file.
  • modifyLabels — Modifies the set of labels applied to a file. For more information, see Set a label field on a file. Returns a list of the labels that were added or modified.
  • update — Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as modifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types: */* (Specify a valid MIME type, rather than the literal */* value.
  • watch — Subscribes to changes to a file. For more information, see Notifications for resource changes.

operations

  • get — Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

permissions

  • create — Creates a permission for a file or shared drive. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
  • delete — Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
  • get — Gets a permission by ID. For more information, see Share files, folders, and drives.
  • list — Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives.
  • update — Updates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.

replies

revisions

  • delete — Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see Manage file revisions.
  • get — Gets a revision's metadata or content by ID. For more information, see Manage file revisions.
  • list — Lists a file's revisions. For more information, see Manage file revisions. Important: The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision.
  • update — Updates a revision with patch semantics. For more information, see Manage file revisions.

teamdrives

  • create — Deprecated: Use drives.create instead.
  • get — Deprecated: Use drives.get instead.
  • list — Deprecated: Use drives.list instead.
  • update — Deprecated: Use drives.update instead.

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws drive --help

# Inspect a method's required params, types, and defaults
gws schema drive.<resource>.<method>

Use gws schema output to build your --params and --json flags.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Retrieve Google Workspace audit logs, which record account activity, and usage reports through gws. Review activity in applications such as the Admin console and Google Drive, or inspect statistics for the organization, users, and entities.

中文简介正在准备中。当前显示英语简介。

  • Reviewing Admin console and Google Drive activity
  • Checking organization usage statistics
  • Retrieving usage reports for users
googleworkspace/cli3.2万2026年10月7日 更新

Manage Google Calendar events and calendars, including creating, updating, and deleting events. View upcoming events across calendars, check availability, and manage the permissions that control who can access a calendar.

中文简介正在准备中。当前显示英语简介。

  • Creating, updating, or deleting calendar events
  • Viewing upcoming events across multiple calendars
  • Checking availability across calendars
googleworkspace/cli3.2万2026年10月7日 更新

View upcoming Google Calendar events across all calendars in one agenda. Check today, tomorrow, this week, or a chosen number of days, with options to filter calendars and change the display time zone.

中文简介正在准备中。当前显示英语简介。

  • Checking today's events across multiple calendars
  • Reviewing tomorrow's or this week's schedule
  • Listing the next three days on a work calendar
googleworkspace/cli3.2万2026年10月7日 更新

Create a Google Calendar event with a title and start and end times. You can also choose a calendar, add a location and description, invite attendees, and include a Google Meet link.

中文简介正在准备中。当前显示英语简介。

  • Adding a meeting with a specified start and end time
  • Creating an event with attendees
  • Scheduling an online meeting with a Google Meet link
googleworkspace/cli3.2万2026年10月7日 更新

gws-chat

免费

Manage Google Chat spaces, the places where conversations happen, and their messages through the gws command-line tool. Create or update spaces, add members, send messages, and upload or download attachments.

中文简介正在准备中。当前显示英语简介。

  • Create a Google Chat space with initial members
  • List spaces and update their details
  • Send messages to a space
googleworkspace/cli3.2万2026年10月7日 更新

Send plain text messages to a specified Google Chat space using the gws command line tool. Use it for team updates and announcements, with guidance on finding space identifiers and confirming messages before sending.

中文简介正在准备中。当前显示英语简介。

  • Sending a team announcement
  • Sharing a progress update in a space
  • Finding the destination space before sending
googleworkspace/cli3.2万2026年10月7日 更新

查看 googleworkspace 的全部技能

报告此技能的问题