Skill Press

No. 497 · gws-gmail-reply

Reply to a Gmail Message

A field guide from Google Workspace CLI

Google Workspace CLI

When to use it

Gmail: Reply to a message (handles threading automatically).

Rank
No. 497 of 971
Installs
Not listed yet
Runs in
Gemini
Length
385 words · 2 min
Files
2
License
Apache-2.0

Get this skill

Download the skill folder (.zip, 5 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "gws-gmail-reply" Agent Skill by Google Workspace CLI, from https://github.com/googleworkspace/cli.

1. Fetch the whole folder skills/gws-gmail-reply — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/googleworkspace/cli.git cd3697e07eb520056dcf142d0c7439bbb9ba32e9
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "gws-gmail-reply":
   - Claude Code: ~/.claude/skills/gws-gmail-reply/ (all projects) or .claude/skills/gws-gmail-reply/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that gws-gmail-reply/SKILL.md exists and its frontmatter says name: gws-gmail-reply.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

Note: Many Workspace recipes use the shared gws-shared skill and a service-specific skill. Install the Workspace collection to keep those prerequisites together.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/googleworkspace/cli/tree/cd3697e07eb520056dcf142d0c7439bbb9ba32e9/skills/gws-gmail-reply --skill gws-gmail-reply

Contents

  1. Usage
  2. Flags
  3. Examples
  4. Tips
  5. See Also

The skill, in full

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

Flag Required Default Description
--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 carol@example.com
gws gmail +reply --message-id 18f1a2b3c4d --body 'Adding Dave' --to dave@example.com
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

More in Email & Team Communication

All Email & Team Communication skills →

More from Google Workspace CLI

From googleworkspace/cli at cd3697e, Apache-2.0. Install counts from skills.sh.