跳到正文
Skillpedia
邮件与消息32k · #9168

gws-gmail-read

它能做什么

这个工具可以读取你 Gmail 中的某一封邮件,并显示它的内容。你可以选择只查看正文、邮件头(例如发件人和主题),或者直接查看邮件的原始 HTML 代码。

适用场景

  • ✓当你需要快速找到某封邮件的内容时。
  • ✓当你想从邮件中提取邮件头信息时。
  • ✓当你想查看邮件的 HTML 版本时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-read/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-read/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“读取 ID 为 '18f1a2b3c4d' 的邮件,并显示邮件头。”

每周 5 个新技能,1 分钟读完。

工作原理

你需要提供要读取的邮件的唯一 ID。工具随后会访问你的 Gmail 账号,并取回这封邮件的内容。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

常见问题

什么是邮件 ID?

它是一个唯一代码,用来标识你 Gmail 账号中的每一封邮件。

我可以以代码格式查看邮件吗?

可以。你可以要求以 HTML 格式查看邮件正文。

我怎么找到邮件的 ID?

ID 通常是一长串代码,在 Gmail 中打开邮件时,会出现在网址(URL)里。

详情

作者的原始描述

Gmail: Read a message and extract its body or headers.

repo: googleworkspace/cli

热度

GitHub 星标
32k
排名
#9168
许可证
Apache-2.0
更新时间
2026/10/6

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能