gws-gmail-reply-all
googleworkspace/cli
Reply-all to Gmail messages with automatic threading and flexible recipient control.
What is gws-gmail-reply-all?
Sends a reply-all to a Gmail message, automatically including the original sender and all To/CC recipients. Use this when you need to respond to a group conversation while optionally adding, removing, or modifying recipients, attaching files, or saving as a draft.
- Reply to sender and all original To/CC recipients automatically
- Add extra recipients via --to, --cc, or --bcc flags
- Exclude specific recipients from the reply using --remove
- Attach files (single or multiple) to the reply
- Compose in plain text or HTML with automatic quote formatting
- Save as draft instead of sending immediately
How to install gws-gmail-reply-all
npx skills add null --skill gws-gmail-reply-all- Google Workspace CLI (gws) installed
- Authentication configured via gws-shared skill
- Gmail message ID of the message to reply to
How to use gws-gmail-reply-all
- 1.Identify the Gmail message ID you want to reply to
- 2.Run gws gmail +reply-all with --message-id and --body as required arguments
- 3.Optionally add --to, --cc, or --bcc to include additional recipients
- 4.Optionally use --remove to exclude specific email addresses
- 5.Optionally attach files with -a/--attach (can repeat multiple times)
- 6.Optionally use --html if your body contains HTML formatting
- 7.Optionally use --draft to save as draft instead of sending
- 8.Use --dry-run to preview the request before execution
Use cases
- Respond to a team email thread while removing one recipient who should not see the reply
- Add a new person to a conversation by CC'ing them in your reply
- Send a reply with file attachments to all original recipients
- Draft a reply-all message for review before sending
- Reply in HTML format with formatted text and preserved inline images from the original message
- Email users managing group conversations
- Teams coordinating via Gmail threads
- Anyone needing to modify reply-all recipients before sending
gws-gmail-reply-all FAQ
Use the --remove flag with a comma-separated list of email addresses to exclude. For example: --remove bob@example.com,alice@example.com
Yes. Use --to for additional To recipients, --cc for CC recipients, and --bcc for blind CC recipients. These are added to the automatic reply-all recipients.
Use the -a or --attach flag followed by the file path. You can specify --attach multiple times to add multiple files.
The command will fail if no To recipient remains after exclusions. You must ensure at least one recipient is included, either from the original message or via --to additions.
Yes, use the --draft flag to save the reply as a draft in Gmail instead of sending it immediately.
Full instructions (SKILL.md)
Source of truth, from googleworkspace/cli.
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.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Reply-all to a message (handles threading automatically)
Usage
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
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Sounds good to me!'
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Updated' --remove bob@example.com
gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Adding Eve' --cc eve@example.com
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 — Global flags and auth
- gws-gmail — All send, read, and manage email commands
Related skills
More from googleworkspace/cli and the wider catalog.
gws-gmail
Send, read, and manage Gmail emails via Google Workspace CLI.
gws-drive
Manage Google Drive files, folders, and shared drives via CLI.
gws-docs
Read and write Google Docs via command line.
gws-calendar
Manage Google Calendar events, calendars, and access control via CLI.
gws-sheets
Read and write Google Sheets spreadsheets via CLI.
gws-gmail-send
Send emails via Gmail with attachments, CC/BCC, HTML support, and draft options.