$npx -y skills add googleworkspace/cli --skill gws-gmail-reply-allGmail: Reply-all to a message (handles threading automatically).
| 1 | # gmail +reply-all |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | Reply-all to a message (handles threading automatically) |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | ```bash |
| 10 | gws gmail +reply-all --message-id <ID> --body <TEXT> |
| 11 | ``` |
| 12 | |
| 13 | ## Flags |
| 14 | |
| 15 | | Flag | Required | Default | Description | |
| 16 | |------|----------|---------|-------------| |
| 17 | | `--message-id` | ✓ | — | Gmail message ID to reply to | |
| 18 | | `--body` | ✓ | — | Reply body (plain text, or HTML with --html) | |
| 19 | | `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | |
| 20 | | `--to` | — | — | Additional To email address(es), comma-separated | |
| 21 | | `--attach` | — | — | Attach a file (can be specified multiple times) | |
| 22 | | `--cc` | — | — | CC email address(es), comma-separated | |
| 23 | | `--bcc` | — | — | BCC email address(es), comma-separated | |
| 24 | | `--html` | — | — | Treat --body as HTML content (default is plain text) | |
| 25 | | `--dry-run` | — | — | Show the request that would be sent without executing it | |
| 26 | | `--draft` | — | — | Save as draft instead of sending | |
| 27 | | `--remove` | — | — | Exclude recipients from the outgoing reply (comma-separated emails) | |
| 28 | |
| 29 | ## Examples |
| 30 | |
| 31 | ```bash |
| 32 | gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Sounds good to me!' |
| 33 | gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Updated' --remove bob@example.com |
| 34 | gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Adding Eve' --cc eve@example.com |
| 35 | gws gmail +reply-all --message-id 18f1a2b3c4d --body '<i>Noted</i>' --html |
| 36 | gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Notes attached' -a notes.pdf |
| 37 | gws gmail +reply-all --message-id 18f1a2b3c4d --body 'Draft reply' --draft |
| 38 | ``` |
| 39 | |
| 40 | ## Tips |
| 41 | |
| 42 | - Replies to the sender and all original To/CC recipients. |
| 43 | - Use --to to add extra recipients to the To field. |
| 44 | - Use --cc to add new CC recipients. |
| 45 | - Use --bcc for recipients who should not be visible to others. |
| 46 | - Use --remove to exclude recipients from the outgoing reply, including the sender or Reply-To target. |
| 47 | - The command fails if no To recipient remains after exclusions and --to additions. |
| 48 | - Use -a/--attach to add file attachments. Can be specified multiple times. |
| 49 | - 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. |
| 50 | - With --html, inline images in the quoted message are preserved via cid: references. |
| 51 | - Use --draft to save the reply as a draft instead of sending it immediately. |
| 52 | |
| 53 | ## See Also |
| 54 | |
| 55 | - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth |
| 56 | - [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands |