Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Reply to a Gmail message with automatic threading, quoted original, CC/BCC, file attachments, and HTML support via the gws CLI.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: gws-gmail-reply3description: "Gmail: Reply to a message (handles threading automatically)."4metadata:5version: 0.22.56openclaw:7category: "productivity"8requires:9bins:10- gws11cliHelp: "gws gmail +reply --help"12---1314# gmail +reply1516> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.1718Reply to a message (handles threading automatically)1920## Usage2122```bash23gws gmail +reply --message-id <ID> --body <TEXT>24```2526## Flags2728| Flag | Required | Default | Description |29|------|----------|---------|-------------|30| `--message-id` | ✓ | — | Gmail message ID to reply to |31| `--body` | ✓ | — | Reply body (plain text, or HTML with --html) |32| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) |33| `--to` | — | — | Additional To email address(es), comma-separated |34| `--attach` | — | — | Attach a file (can be specified multiple times) |35| `--cc` | — | — | CC email address(es), comma-separated |36| `--bcc` | — | — | BCC email address(es), comma-separated |37| `--html` | — | — | Treat --body as HTML content (default is plain text) |38| `--dry-run` | — | — | Show the request that would be sent without executing it |39| `--draft` | — | — | Save as draft instead of sending |4041## Examples4243```bash44gws gmail +reply --message-id 18f1a2b3c4d --body 'Thanks, got it!'45gws gmail +reply --message-id 18f1a2b3c4d --body 'Looping in Carol' --cc [email protected]46gws gmail +reply --message-id 18f1a2b3c4d --body 'Adding Dave' --to [email protected]47gws gmail +reply --message-id 18f1a2b3c4d --body '<b>Bold reply</b>' --html48gws gmail +reply --message-id 18f1a2b3c4d --body 'Updated version' -a updated.docx49gws gmail +reply --message-id 18f1a2b3c4d --body 'Draft reply' --draft50```5152## Tips5354- Automatically sets In-Reply-To, References, and threadId headers.55- Quotes the original message in the reply body.56- --to adds extra recipients to the To field.57- Use -a/--attach to add file attachments. Can be specified multiple times.58- 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.59- With --html, inline images in the quoted message are preserved via cid: references.60- Use --draft to save the reply as a draft instead of sending it immediately.61- For reply-all, use +reply-all instead.6263## See Also6465- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth66- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands67