← 返回 Skills 市场
googleworkspace-bot

Gws Gmail Send

作者 googleworkspace-bot · GitHub ↗ · v1.0.15 · MIT-0
cross-platform ✓ 安全检测通过
1172
总下载
0
收藏
18
当前安装
16
版本数
在 OpenClaw 中安装
/install gws-gmail-send
功能描述
Gmail: Send an email.
使用说明 (SKILL.md)

gmail +send

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

Send an email

Usage

gws gmail +send --to \x3CEMAILS> --subject \x3CSUBJECT> --body \x3CTEXT>

Flags

Flag Required Default Description
--to Recipient email address(es), comma-separated
--subject Email subject
--body Email body (plain text, or HTML with --html)
--from Sender address (for send-as/alias; omit to use account default)
--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 +send --to [email protected] --subject 'Hello' --body 'Hi Alice!'
gws gmail +send --to [email protected] --subject 'Hello' --body 'Hi!' --cc [email protected]
gws gmail +send --to [email protected] --subject 'Hello' --body '\x3Cb>Bold\x3C/b> text' --html
gws gmail +send --to [email protected] --subject 'Hello' --body 'Hi!' --from [email protected]
gws gmail +send --to [email protected] --subject 'Report' --body 'See attached' -a report.pdf
gws gmail +send --to [email protected] --subject 'Files' --body 'Two files' -a a.pdf -a b.csv
gws gmail +send --to [email protected] --subject 'Hello' --body 'Hi!' --draft

Tips

  • Handles RFC 5322 formatting, MIME encoding, and base64 automatically.
  • Use --from to send from a configured send-as alias instead of your primary address.
  • Use -a/--attach to add file attachments. Can be specified multiple times. Total size limit: 25MB.
  • With --html, use fragment tags (\x3Cp>, \x3Cb>, \x3Ca>, \x3Cbr>, etc.) — no \x3Chtml>/\x3Cbody> wrapper needed.
  • Use --draft to save the message as a draft instead of sending it immediately.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

安全使用建议
This skill is a thin instruction-only wrapper around the 'gws' command-line tool for sending Gmail messages. Before installing or enabling it: (1) verify you trust the 'gws' binary on your system (check its source and how it stores credentials); (2) open the referenced ../gws-shared/SKILL.md to see what auth or tokens are required and where they are stored; (3) prefer --dry-run first to inspect the request the tool would make; (4) be cautious when allowing the agent to read files you might attach (attachments read from disk are expected behavior); and (5) confirm with users before any write/send action as the SKILL.md itself recommends.
功能分析
Type: OpenClaw Skill Name: gws-gmail-send Version: 1.0.15 The skill 'gws-gmail-send' provides a standard interface for sending emails via the 'gws' CLI tool. It includes appropriate safety warnings in SKILL.md, such as requiring user confirmation for write operations, and lacks any indicators of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description (Gmail send) match the required binary ('gws') and the SKILL.md usage examples. Requiring the 'gws' CLI is appropriate for a CLI-based Gmail send helper.
Instruction Scope
The SKILL.md is narrowly scoped to building and running 'gws gmail +send' and documents flags, attachments, and dry-run. It does instruct the agent to read '../gws-shared/SKILL.md' for auth, global flags, and security rules — that external reference means the agent may attempt to read sibling skill files or run 'gws generate-skills' if missing. Reading that shared file is reasonable for auth guidance, but you should verify what the referenced file requires before granting access.
Install Mechanism
No install spec is present (instruction-only). Nothing is downloaded or written by the skill itself; it simply invokes an existing 'gws' binary on PATH.
Credentials
This skill declares no required environment variables, which is consistent with being a thin wrapper. However, authentication and global flags are delegated to gws-shared (external), which likely requires credentials or tokens; inspect gws-shared/SKILL.md or your gws configuration to confirm what secrets (OAuth tokens, account credentials) are used and where they are stored.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent system-wide privileges in its own metadata. The runtime will execute the 'gws' CLI as the agent; any persistence depends on that CLI, not this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gws-gmail-send
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gws-gmail-send 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.15
- Updated version metadata from 0.22.4 to 0.22.5 in SKILL.md. - No changes to functionality or usage; documentation only.
v1.0.14
- Updated skill metadata version to 0.22.4 - No functional or documentation changes; version bump only
v1.0.13
- Updated version number in metadata from 0.22.2 to 0.22.3 in SKILL.md. - No changes to functionality or documentation content.
v1.0.12
- Updated version metadata from 0.22.1 to 0.22.2 in SKILL.md. - No functional or usage changes; documentation update only.
v1.0.11
- Updated skill metadata version from 0.22.0 to 0.22.1 in SKILL.md.
v1.0.10
- Updated version number in SKILL.md to 0.22.0. - No changes to functionality or usage; documentation version increment only.
v1.0.9
- Added --draft flag to allow saving emails as drafts instead of sending immediately - Updated usage examples and tips to document draft-saving functionality - Bumped metadata version to 0.21.2
v1.0.8
- Updated skill metadata version to 0.21.1. - No changes to features, usage, or flags; documentation version increment only.
v1.0.7
- Updated version in metadata from 0.20.0 to 0.20.1. - No functional or documentation changes beyond the internal version bump.
v1.0.6
- Updated metadata version from 0.19.0 to 0.20.0 in SKILL.md. - No functional or usage changes; only documentation version update.
v1.0.5
- Updated SKILL.md metadata: moved version number to the metadata block and removed the top-level version field. - Set version to 0.19.0 in metadata. - No changes to command usage, flags, or function. - Documentation is now more consistent with other skills.
v1.0.4
- Documentation formatting adjustments in SKILL.md for clarity and consistency. - No changes to functionality or usage.
v1.0.3
- Removed the --attachment flag from the documented options; only --attach is now listed for file attachments. - Minor cleanup of the Flags table to reflect supported parameters. - No changes to usage, examples, or functionality documented besides flag clarification.
v1.0.2
- Added --from flag to specify sender address (for send-as/alias support). - Added --attach / -a flags for including one or more email attachments (up to 25MB total). - Updated documentation to reflect attachment usage and new flags. - Clarified tips on MIME and HTML usage.
v1.0.1
- Added support for comma-separated multiple recipients in --to, --cc, and --bcc flags. - Introduced --cc and --bcc flags for sending emails with CC and BCC recipients. - Added --html flag to send HTML-formatted emails. - Added --dry-run flag to preview the request without sending an email. - Updated examples and flag descriptions to reflect new features.
v1.0.0
Initial release of gws-gmail-send. - Enables sending emails via Gmail from the command line. - Supports required flags: --to, --subject, and --body for simple plain-text messages. - Automatically formats according to RFC 2822 and encodes message as needed. - For advanced use (HTML, attachments, CC/BCC), recommends using the raw API. - Integrates with gws authentication and shared configuration.
元数据
Slug gws-gmail-send
版本 1.0.15
许可证 MIT-0
累计安装 20
当前安装数 18
历史版本数 16
常见问题

Gws Gmail Send 是什么?

Gmail: Send an email. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1172 次。

如何安装 Gws Gmail Send?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gws-gmail-send」即可一键安装,无需额外配置。

Gws Gmail Send 是免费的吗?

是的,Gws Gmail Send 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Gws Gmail Send 支持哪些平台?

Gws Gmail Send 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gws Gmail Send?

由 googleworkspace-bot(@googleworkspace-bot)开发并维护,当前版本 v1.0.15。

💬 留言讨论