googleworkspace/cli✦ 精选0°

gws-gmail-read

仓库创建 2026年3月3日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由

适合构建邮件解析或触发器的基础能力。

▸ 风险提示

需要 Google 帐号授权并授予 Gmail API 权限。

这个 Skill 做什么

读取邮件并提取正文或头信息,便于自动处理。

读取指定 Gmail 邮件并把正文或邮件头信息抽出来,方便脚本或自动化处理。常用于根据邮件内容触发任务、批量解析或汇总通知的时候。只要提供 Gmail 的 message ID 就能抓取不同片段,容易嵌入到自动化流水线里。

▸ 展开 SKILL.md 英文原文

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

办公文档Gmail邮件读取CLI通用
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-read/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-read/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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

```bash
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 |

## Example
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有