Generated banner for Gws Gmail Forward
Generated logo for Gws Gmail Forward

Gws Gmail Forward

Google WorkspaceOfficialPublished by Google Workspace

  • Skill
  • Tool integration
  • Automation and integrations
  • Apache-2.0
  • No issues found

From the author

Gmail: Forward a message to new recipients.
— the description by Google Workspace

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The gws-gmail-forward skill provides a command-line interface to programmatically forward existing Gmail messages to new recipients. It supports standard forwarding features such as adding custom notes, including or excluding original attachments, and adding new files. The tool integrates with Gmail's native behavior, allowing for both plain-text and HTML-formatted bodies, and provides options to save forwards as drafts or perform dry runs to verify the operation before execution.

What it does

  • Forwards specific Gmail messages identified by their message ID.
  • Supports adding custom notes to the forwarded message in plain text or HTML.
  • Allows inclusion or exclusion of original message attachments.
  • Enables adding new file attachments to the forwarded email.
  • Supports CC and BCC recipient fields.
  • Provides a draft mode to save the forward for later review.

When to use it

  • When you need to automate the forwarding of emails as part of a larger workflow.
  • When you want to batch forward messages or handle them via script.
  • When you need to forward emails with specific attachments or custom notes consistently.
  • When you prefer to manage email tasks directly from the command line.

Advantages

  • Integrates seamlessly with existing Gmail account settings and aliases.
  • Supports HTML formatting for professional-looking forwarded messages.
  • Provides granular control over attachments and recipient lists.
  • Includes a dry-run feature to prevent accidental sends.

Usage examples

“Forward message 18f1a2b3c4d to [email removed] with a note.”
The skill forwards the specified email to the recipient with the provided note included above the original message content.
“Forward an email to a team and save it as a draft.”
The skill creates a draft in your Gmail account containing the forwarded message, ready for final review before sending.
“Forward an email without its original attachments.”
The skill forwards the message body and headers to the new recipient while stripping all original file attachments.
“Forward an email with an additional PDF attachment.”
The skill sends the forwarded message along with the specified local file attached to the email.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/googleworkspace/gws-gmail-forward/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip gws-gmail-forward.zip -d .agents/skills

Documentation by Google Workspace

gmail +forward

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

Forward a message to new recipients

Usage

gws gmail +forward --message-id <ID> --to <EMAILS>

Flags

FlagRequiredDefaultDescription
--message-id✓—Gmail message ID to forward
--to✓—Recipient email address(es), comma-separated
--from——Sender address (for send-as/alias; omit to use account default)
--body——Optional note to include above the forwarded message (plain text, or HTML with --html)
--no-original-attachments——Do not include file attachments from the original message (inline images in --html mode are preserved)
--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 +forward --message-id 18f1a2b3c4d --to [email protected]
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body 'FYI see below'
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --cc [email protected]
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body '<p>FYI</p>' --html
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] -a notes.pdf
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --no-original-attachments
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --draft

Tips

  • Includes the original message with sender, date, subject, and recipients.

  • Original attachments are included by default (matching Gmail web behavior).

  • With --html, inline images are also preserved via cid: references.

  • In plain-text mode, inline images are not included (matching Gmail web).

  • Use --no-original-attachments to forward without the original message's files.

  • Use -a/--attach to add extra file attachments. Can be specified multiple times.

  • Combined size of original and user attachments is limited to 25MB.

  • With --html, the forwarded block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.

  • Use --draft to save the forward 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

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google Workspace
Publisher
Google Workspace (Official)
Source
googleworkspace/cli · skills/gws-gmail-forward · commit cd3697e
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google Workspace or Google Workspace.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download gws-gmail-forward.zip