gws-gmail-read
Agent skill fromgoogleworkspace/cli
Gmail: Read a message and extract its body or headers.
How to install gws-gmail-read
install gws-gmail-read
# install the cli pack with the skills CLI
npx skills add googleworkspace/cli# or add only this skill to Claude Code: copy the folder
skills/gws-gmail-read/
# into
~/.claude/skills/gws-gmail-read/ (all projects)
.claude/skills/gws-gmail-read/ (one project)
1# gmail +read23> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.45Read a message and extract its body or headers67## Usage89```bash10gws gmail +read --id <ID>11```1213## Flags1415| Flag | Required | Default | Description |16|------|----------|---------|-------------|17| `--id` | ✓ | — | The Gmail message ID to read |18| `--headers` | — | — | Include headers (From, To, Subject, Date) in the output |19| `--format` | — | text | Output format (text, json) |20| `--html` | — | — | Return HTML body instead of plain text |21| `--dry-run` | — | — | Show the request that would be sent without executing it |2223## Examples2425```bash26gws gmail +read --id 18f1a2b3c4d27gws gmail +read --id 18f1a2b3c4d --headers28gws gmail +read --id 18f1a2b3c4d --format json | jq '.body'29```3031## Tips3233- Converts HTML-only messages to plain text automatically.34- Handles multipart/alternative and base64 decoding.3536## See Also3738- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth39- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands
Excerpt shown under the repository's Apache-2.0 license.
