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: Gmail Skill
Google 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.
Install
Other ways to install
About
- Helpers: +send, +triage, +reply, +reply-all, +forward, +read, +watch
- Reply helpers handle Gmail threading automatically
- +watch streams new messages as NDJSON
- Full Gmail v1 users resource: drafts, labels, messages, threads, settings, history
- Inspect any method with gws schema before calling it
- Inherits auth and security rules from the shared gws skill
This is the Gmail skill from googleworkspace/cli, the official repository for gws, Google Workspace's single command-line tool for its APIs. It teaches an agent to work a Gmail mailbox through gws gmail <resource> <method> rather than hand-written HTTP calls.
Helper commands first. The skill points the agent at higher-level helpers before raw API calls: +send, +triage (an unread-inbox summary of sender, subject and date), +reply and +reply-all (which handle threading), +forward, +read (extract a message's body or headers) and +watch, which streams new mail as NDJSON. Each helper has its own skill in the same repository.
The whole API underneath. For anything the helpers do not cover, it lists the Gmail v1 users resource with its drafts, history, labels, messages, settings and threads sub-resources, plus profile and push-notification watch/stop. The rule it gives is to inspect before calling: gws gmail --help to browse, gws schema gmail.<resource>.<method> to read a method's required parameters and types, and then build --params and --json from that output.
Depends on the shared skill. Authentication, global flags and the security rules live in gws-shared, listed here as Google Workspace CLI (gws), and this skill tells the agent to read it first (or run gws generate-skills to create it). The gws binary must be installed.
Try it
Once installed, ask your agent something like:
gws gmail +triage
gws schema gmail.users.messages.list
SKILL.md
The instructions your agent loads, as published by Google Workspace.
Related Skills
See all Google Workspace CLI: Gmail alternativesGoogle 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.
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.
