googleworkspace/cli已通过检查
SKILL DETAIL
gws-gmail
googleworkspace/cli/gws-gmail
gws-gmail 技能提供对 Gmail API 的命令行访问,支持发送、读取和管理电子邮件。它包含用于发送邮件、查看未读邮件摘要、回复、回复全部、转发、阅读邮件以及监听新邮件的辅助命令。此外,它还提供对 Gmail API 资源的直接访问,如用户资料、草稿、历史记录、标签、消息、设置和线程。 使用前,请确保已安装 gws 二进制文件,并阅读 gws-shared 技能中的认证和全局标志说明。通过 `gws gmail --help` 浏览可用命令,使用 `gws schema gmail.<resource>.<method>` 查看具体方法的参数和默认值。
安装量 · 270查看来源
Installation
npx skills add https://googleworkspace/cli/
技能文件
SKILL.md
最近同步 · 2026年9月30日
SKILL.md›
---
name: gws-gmail
description: "Gmail: Send, read, and manage email."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws gmail --help"
---
# gmail (v1)
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
```bash
gws gmail <resource> <method> [flags]
```
## Helper Commands
| Command | Description |
|---------|-------------|
| [`+send`](../gws-gmail-send/SKILL.md) | Send an email |
| [`+triage`](../gws-gmail-triage/SKILL.md) | Show unread inbox summary (sender, subject, date) |
| [`+reply`](../gws-gmail-reply/SKILL.md) | Reply to a message (handles threading automatically) |
| [`+reply-all`](../gws-gmail-reply-all/SKILL.md) | Reply-all to a message (handles threading automatically) |
| [`+forward`](../gws-gmail-forward/SKILL.md) | Forward a message to new recipients |
| [`+read`](../gws-gmail-read/SKILL.md) | Read a message and extract its body or headers |
| [`+watch`](../gws-gmail-watch/SKILL.md) | Watch for new emails and stream them as NDJSON |
## API Resources
### users
- `getProfile` — Gets the current user's Gmail profile.
- `stop` — Stop receiving push notifications for the given user mailbox.
- `watch` — Set up or update a push notification watch on the given user mailbox.
- `drafts` — Operations on the 'drafts' resource
- `history` — Operations on the 'history' resource
- `labels` — Operations on the 'labels' resource
- `messages` — Operations on the 'messages' resource
- `settings` — Operations on the 'settings' resource
- `threads` — Operations on the 'threads' resource
## Discovering Commands
Before calling any API method, inspect it:
```bash
# Browse resources and methods
gws gmail --help
# Inspect a method's required params, types, and defaults
gws schema gmail.<resource>.<method>
```
Use `gws schema` output to build your `--params` and `--json` flags.