Labsco
googleworkspace logo

gws-gmail-reply

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

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

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

gmail +reply

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)

Flags

FlagRequiredDefaultDescription
--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

See Also

  • gws-shared โ€” Global flags and auth
  • gws-gmail โ€” All send, read, and manage email commands