Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Google Workspace CLI: Drive Skill
Google Workspace's official gws skill for Google Drive: manage files, folders, permissions, comments, revisions and shared drives from an agent through the gws CLI and the Drive v3 API.
Install
Other ways to install
About
- Every Drive v3 resource as gws drive commands, with Google's guide linked per method
- Files: create, copy, list/search, download and export Workspace docs
- Sharing through permissions on files, folders and shared drives
- Comments, replies, revisions, change feeds and push channels
- +upload helper with automatic metadata
- Inherits auth and security rules from the shared gws skill
This is the Google Drive skill from googleworkspace/cli, the official repository for gws, Google Workspace's command-line tool for its APIs. It gives an agent a map of the Drive v3 API as gws drive <resource> <method> commands, so it can find, create, copy, export and share files without writing API client code.
What it covers. The skill lists every Drive v3 resource with a one-line description and a link to Google's guide for each method: files (create, copy, get, list with search queries, download, export of Workspace documents to other formats, generate IDs), permissions for sharing files, folders and shared drives, comments and replies, revisions, drives and the legacy teamdrives, changes and push-notification channels, accessproposals and approvals, installed apps, long-running operations, and about for user and quota information. It carries Google's own caveats inline, such as the fields parameter that about.get requires.
Helper and discovery. One helper, +upload, uploads a file with automatic metadata. For everything else the rule is to inspect first: gws drive --help and gws schema drive.<resource>.<method> show the required parameters, which then go into --params and --json.
Depends on the shared skill. Authentication, global flags and security rules (confirm before writes, prefer --dry-run) live in gws-shared, listed here as Google Workspace CLI (gws); the skill tells the agent to read it first. The gws binary must be installed.
Try it
Once installed, ask your agent something like:
gws drive files list --params '{"q": "name contains 'invoice'", "pageSize": 10}'
gws schema drive.permissions.create
SKILL.md
The instructions your agent loads, as published by Google Workspace.
Related Skills
See all Google Workspace CLI: Drive alternativesGoogle Workspace's official gws skill for Gmail: send, read, triage, reply and forward email from an agent through the gws CLI, with the full Gmail v1 API one schema lookup away.
Skill: Obsidian CLI
by Steph Ango (kepano)
Lets an agent drive a running Obsidian app through the official obsidian CLI: read, create, append to and search notes, manage tasks, properties and daily notes, and reload, debug and screenshot plugins and themes.
Skill: PlanetScale CLI Automation
by PlanetScale
How to drive the PlanetScale CLI non-interactively: --format json everywhere, auth check before anything else, pscale sql instead of pscale shell, correct flag placement.
