Generated banner for Gws Gmail
Generated logo for Gws Gmail

Gws Gmail

Google WorkspaceOfficialPublished by Google Workspace

  • Skill
  • Tool integration
  • Automation and integrations
  • Apache-2.0
  • No issues found

From the author

Gmail: Send, read, and manage email.
— the description by Google Workspace

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The gws-gmail skill provides a command-line interface to interact with Gmail services. It enables users to perform common email operations such as sending, reading, and triaging messages, as well as managing threads, drafts, and labels. The skill is designed to be used within the gws framework, requiring shared authentication and configuration.

What it does

  • Send new emails and reply to existing threads
  • Triage unread inbox messages by summarizing sender and subject
  • Forward messages to new recipients
  • Read message bodies and headers
  • Monitor for new emails using a watch mechanism
  • Manage Gmail resources including labels, drafts, and settings

When to use it

  • When you need to automate email tasks from a terminal or script
  • When integrating Gmail functionality into a larger workflow
  • When you need to monitor incoming mail programmatically
  • When managing Gmail settings or labels via command-line tools

Advantages

  • Enables programmatic access to Gmail features
  • Supports automated email triage and monitoring
  • Integrates with the broader gws ecosystem for unified authentication
  • Provides schema inspection to verify parameters and types

Usage examples

“gws gmail --help”
Displays the available resources and methods for interacting with the Gmail API.
“gws schema gmail.users.getProfile”
Returns the required parameters and data types for retrieving the current user's Gmail profile.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/googleworkspace/gws-gmail/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip gws-gmail.zip -d .agents/skills

Documentation by Google Workspace

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.

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google Workspace
Publisher
Google Workspace (Official)
Source
googleworkspace/cli · skills/gws-gmail · commit cd3697e
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google Workspace or Google Workspace.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download gws-gmail.zip