Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · Google

gws-gmail-reply-all — Claude skill: reply-all in Gmail

A skill that sends a reply to every recipient of a Gmail message. Threading is handled for you, so no manual header work.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add googleworkspace/cli --skill gws-gmail-reply-all -a claude-code
Open on GitHub

What gws-gmail-reply-all does

The skill wraps the gws gmail +reply-all command. You pass --message-id and the reply text, and it builds the recipient list from the original message: sender, To and CC. Threading stays intact because Gmail gets the right headers.

The flags cover everyday mail. --cc and --bcc add new recipients, --remove drops people from the outgoing reply, --attach adds files. Use --html for markup and --draft to review before sending. The command fails when no To recipient is left after exclusions and --to additions.

Read ../gws-shared/SKILL.md first for auth and global flags. If it is missing, run gws generate-skills. Worth installing if you handle mail from a terminal or an agent. If Gmail in the browser already works for you, skip it.

What it helps with

  • reply to every recipient without retyping addresses
  • keep the thread when replying from the command line
  • add someone to CC without dropping the rest
  • attach a file to a reply
  • save a reply as a draft before sending

Example prompts for the agent

  • Reply all to message 18f1a2b3c4d with 'Sounds good to me!'
  • Send a reply-all and add [email protected] to CC
  • Save the reply-all as a draft with the body 'Draft reply'

How to install gws-gmail-reply-all

1Skills CLI (Vercel)

npx skills add googleworkspace/cli --skill gws-gmail-reply-all -a claude-code

2Manually: put the files in place

~/.claude/skills/gws-gmail-reply-all/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gws-gmail-reply-all/

From the same set95

The whole set →
gws-gmail official googleworkspace This skill hands your agent Gmail: send mail, read the inbox, reply in a thread. Useful when email work already runs through the gws CLI. Claude Code CX Codex Cursor +1 81,900installs gws-gmail-send official googleworkspace A skill that teaches your agent to send Gmail from the terminal: recipients, subject, body, attachments and drafts. Claude Code CX Codex Cursor +1 74,700installs gws-drive official googleworkspace This skill hands your agent Google Drive through the gws CLI: files, folders, shared drives, comments and access requests. Useful when docs move through code. Claude Code CX Codex Cursor +1 74,500installs gws-shared official googleworkspace This skill gives agents shared rules for gws CLI authentication, flags, and output formats. Use it when working with gws commands. Claude Code CX Codex Cursor +1 66,000installs gws-calendar official googleworkspace Manage Google Calendar events, access rules, and schedules through the gws CLI tool. Claude Code CX Codex Cursor +1 61,100installs gws-sheets official googleworkspace This skill lets an agent read and edit Google Sheets through the CLI. Use it when a coding workflow needs spreadsheet data or table updates. Claude Code CX Codex Cursor +1 58,800installs gws-docs official googleworkspace This skill lets an agent read and update Google Docs through gws. Use it when document changes should happen from an agent chat. Claude Code CX Codex Cursor +1 58,300installs gws-sheets-read official googleworkspace Reads cell values and sheets from Google Spreadsheets via CLI. Useful when an agent needs spreadsheet data without risk of altering it. Claude Code CX Codex Cursor +1 50,600installs

Similar

Questions about gws-gmail-reply-all

How do I install gws-gmail-reply-all in Claude?

Run npx skills add googleworkspace/cli --skill gws-gmail-reply-all -a claude-code. The skill file lands at ~/.claude/skills/gws-gmail-reply-all/SKILL.md.

What does gws-gmail-reply-all do?

It sends a reply to all recipients of a Gmail message. Recipients come from the original To and CC fields, and threading is handled automatically.

Who receives the reply?

The sender plus everyone in the original To and CC. Drop people with --remove, or add new ones with --to and --cc.

Source text

SKILL.md · Apache-2.0
---
name: gws-gmail-reply-all
description: "Gmail: Reply-all to a message (handles threading automatically)."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws gmail +reply-all --help"
---

# gmail +reply-all

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

Reply-all to a message (handles threading automatically)

## Usage

```bash
gws gmail +reply-all --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 |
| `--remove` | — | — | Exclude recipients from the outgoing reply (comma-separated emails) |

## Examples

```bash
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Sounds good to me!'
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Updated' --remove [email protected]
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Adding Eve' --cc [email protected]
gws gmail +reply-all --message-id 18f1a2b3c4d --body '<i>Noted</i>' --html
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Notes attached' -a notes.pdf
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Draft reply' --draft
```

## Tips

- Replies to the sender and all original To/CC recipients.
- Use --to to add extra recipients to the To field.
- Use --cc to add new CC recipients.
- Use --bcc for recipients who should not be visible to others.
- Use --remove to exclude recipients from the outgoing reply, including the sender or Reply-To target.
- The command fails if no To recipient remains after exclusions and --to additions.
- 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.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands

© googleworkspace · Apache-2.0 · googleworkspace/cli

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor