PluginBench
Skill
Review
Audit score 70

gws-gmail

googleworkspace/cli

Send, read, and manage Gmail emails via Google Workspace CLI.

What is gws-gmail?

Gmail skill for Google Workspace CLI enables sending, reading, and managing emails programmatically. Use it to automate email workflows, triage inboxes, reply to messages, and access Gmail API resources.

  • Send emails with attachments and formatting
  • Read message bodies and extract headers
  • Reply, reply-all, and forward messages with automatic threading
  • Triage unread inbox with sender, subject, and date summaries
  • Watch mailbox for new incoming emails in real-time
  • Manage drafts, labels, threads, and email history

How to install gws-gmail

npx skills add null --skill gws-gmail
Prerequisites
  • Google Workspace CLI (gws) installed
  • gws-shared skill installed (for authentication and global flags)
  • Google Workspace account with Gmail enabled
  • Proper OAuth scopes configured for Gmail API access
Claude Code
Cursor
Windsurf
Cline

How to use gws-gmail

  1. 1.Install the skill: npx skills add null --skill gws-gmail
  2. 2.Review gws-shared/SKILL.md for authentication setup and security rules
  3. 3.Run gws gmail --help to browse available resources and methods
  4. 4.Use gws schema gmail.<resource>.<method> to inspect required parameters and types
  5. 5.Call helper commands (+send, +triage, +reply, +read, +watch) for common tasks or use raw API methods with --params and --json flags
  6. 6.Set up push notifications with +watch or users.watch for real-time email monitoring

Use cases

Good for
  • Automate email notifications and alerts from your application
  • Build inbox triage workflows to summarize unread messages
  • Create email-based approval or notification systems
  • Forward or reply to messages programmatically based on conditions
  • Monitor mailbox for specific incoming emails
Who it's for
  • Automation engineers
  • Productivity workflow builders
  • Google Workspace administrators
  • Developers integrating email into agent workflows

gws-gmail FAQ

What authentication is required?

Gmail skill requires Google Workspace authentication configured in gws-shared. See ../gws-shared/SKILL.md for setup and security rules.

Can I send emails with attachments?

Yes, the +send helper command supports sending emails with attachments and formatting.

How do I monitor new emails?

Use the +watch helper command or users.watch API method to set up push notifications and stream new emails as NDJSON.

What's the difference between +reply and +reply-all?

+reply responds only to the sender, while +reply-all includes all original recipients. Both handle threading automatically.

How do I discover available API methods?

Run gws gmail --help to browse resources, then use gws schema gmail.<resource>.<method> to inspect parameters and types.

Full instructions (SKILL.md)

Source of truth, from googleworkspace/cli.


name: gws-gmail description: "Gmail: Send, read, and manage email." metadata: version: 0.22.5 openclaw: category: "productivity" requires: bins: - gws cliHelp: "gws gmail --help"

gmail (v1)

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

gws gmail <resource> <method> [flags]

Helper Commands

CommandDescription
+sendSend an email
+triageShow unread inbox summary (sender, subject, date)
+replyReply to a message (handles threading automatically)
+reply-allReply-all to a message (handles threading automatically)
+forwardForward a message to new recipients
+readRead a message and extract its body or headers
+watchWatch for new emails and stream them as NDJSON

API Resources

users

  • getProfile — Gets the current user's Gmail profile.
  • stop — Stop receiving push notifications for the given user mailbox.
  • watch — Set up or update a push notification watch on the given user mailbox.
  • drafts — Operations on the 'drafts' resource
  • history — Operations on the 'history' resource
  • labels — Operations on the 'labels' resource
  • messages — Operations on the 'messages' resource
  • settings — Operations on the 'settings' resource
  • threads — Operations on the 'threads' resource

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws gmail --help

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

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