360 Secure SkillHub
360 安全技能中心

Gws Gmail Read

该 Skill 提供 gws gmail +read 命令,用邮件 ID 读取 Gmail 邮件,可选择输出邮件头、HTML 正文或 JSON 格式;依赖 gws 及共享认证配置,本身不包含发送或管理邮件功能。

googleworkspace-bot
googleworkspace-bot
热度 69.49
最近更新 2026-05-11 17:33:05
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gws-gmail-read
Metadata
name
gws-gmail-read
description
Gmail: Read a message and extract its body or headers.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws gmail +read --help"}}

gmail +read

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

Read a message and extract its body or headers

Usage

gws gmail +read --id <ID>

Flags

Flag Required Default Description
--id ✓ — The Gmail message ID to read
--headers — — Include headers (From, To, Subject, Date) in the output
--format — text Output format (text, json)
--html — — Return HTML body instead of plain text
--dry-run — — Show the request that would be sent without executing it

Examples

gws gmail +read --id 18f1a2b3c4d
gws gmail +read --id 18f1a2b3c4d --headers
gws gmail +read --id 18f1a2b3c4d --format json | jq '.body'

Tips

  • Converts HTML-only messages to plain text automatically.
  • Handles multipart/alternative and base64 decoding.

See Also