Generated banner for Gws Gmail Reply
Generated logo for Gws Gmail Reply

Gws Gmail Reply

Google WorkspaceOfficialPublished by Google Workspace

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

From the author

Gmail: Reply to a message (handles threading automatically).
— the description by Google Workspace

AutoGineer summary

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

The gws-gmail-reply skill provides a command-line interface to send replies to existing Gmail messages. It simplifies the process of managing email threads by automatically handling In-Reply-To, References, and threadId headers. The tool supports both plain text and HTML bodies, allows for adding CC/BCC recipients, and enables file attachments. It also includes safety features like a dry-run mode and the ability to save replies as drafts instead of sending them immediately.

What it does

  • Sends replies to specific Gmail messages using a message ID.
  • Automatically manages email threading headers.
  • Supports plain text and HTML email content.
  • Allows adding CC, BCC, and additional To recipients.
  • Enables attaching multiple files to a reply.
  • Provides a draft mode to save messages for later review.

When to use it

  • When you need to automate email responses within a terminal workflow.
  • When you want to programmatically send follow-up emails while maintaining thread context.
  • When you need to attach files to automated email replies.
  • When you prefer to draft automated responses before sending them.

Advantages

  • Maintains proper email threading without manual header configuration.
  • Flexible support for both plain text and HTML formatting.
  • Includes a dry-run feature to verify requests before execution.
  • Supports standard email features like CC, BCC, and attachments.

Usage examples

“Reply to message 18f1a2b3c4d with the text 'Thanks, got it!'”
The agent sends a reply to the specified message ID with the provided text.
“Reply to message 18f1a2b3c4d and CC [email removed] with the message 'Looping in Carol'”
The agent sends a threaded reply to the message, including Carol in the CC field.
“Save a reply to message 18f1a2b3c4d as a draft with the body 'Draft reply'”
The agent creates a draft in the user's Gmail account instead of sending the email.
“Reply to message 18f1a2b3c4d with an HTML body containing bold text”
The agent sends an HTML-formatted reply to the specified message.

Install

  1. Download the skill as a ZIP:

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

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

Documentation by Google Workspace

gmail +reply

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

Reply to a message (handles threading automatically)

Usage

gws gmail +reply --message-id <ID> --body <TEXT>

Flags

FlagRequiredDefaultDescription
--message-id✓—Gmail message ID to reply to
--body✓—Reply body (plain text, or HTML with --html)
--from——Sender address (for send-as/alias; omit to use account default)
--to——Additional To email address(es), comma-separated
--attach——Attach a file (can be specified multiple times)
--cc——CC email address(es), comma-separated
--bcc——BCC email address(es), comma-separated
--html——Treat --body as HTML content (default is plain text)
--dry-run——Show the request that would be sent without executing it
--draft——Save as draft instead of sending

Examples

gws gmail +reply --message-id 18f1a2b3c4d --body 'Thanks, got it!'
gws gmail +reply --message-id 18f1a2b3c4d --body 'Looping in Carol' --cc [email protected]
gws gmail +reply --message-id 18f1a2b3c4d --body 'Adding Dave' --to [email protected]
gws gmail +reply --message-id 18f1a2b3c4d --body '<b>Bold reply</b>' --html
gws gmail +reply --message-id 18f1a2b3c4d --body 'Updated version' -a updated.docx
gws gmail +reply --message-id 18f1a2b3c4d --body 'Draft reply' --draft

Tips

  • Automatically sets In-Reply-To, References, and threadId headers.

  • Quotes the original message in the reply body.

  • --to adds extra recipients to the To field.

  • Use -a/--attach to add file attachments. Can be specified multiple times.

  • With --html, the quoted block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.

  • With --html, inline images in the quoted message are preserved via cid: references.

  • Use --draft to save the reply as a draft instead of sending it immediately.

  • For reply-all, use +reply-all instead.

See Also

  • gws-shared — Global flags and auth

  • gws-gmail — All send, read, and manage email commands

Files

ATTRIBUTION.md

Attribution

This folder is an unmodified copy of the Agent Skill "gws-gmail-reply", distributed by AutoGineer (https://autogineer.com/agent-skills).

The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.

Files added by AutoGineer

  • ATTRIBUTION.md: this file, written by AutoGineer

  • LICENSE: copied from LICENSE

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-reply · 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.

Download ZIP

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