Labsco
googleworkspace logo

gws-gmail

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

Gmail: Send, read, and manage email.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

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.