gws-gmail-read
What it does
This tool reads a specific email from your Gmail and shows its content. You can choose to see just the text, the headers (like sender and subject), or even the original HTML code of the email.
When to use it
- ✓When you need to quickly find the content of a specific email.
- ✓To extract header information from an email.
- ✓To view the HTML version of an email.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-read/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Read the email with ID '18f1a2b3c4d' and show the headers.”
5 new skills a week. 1 minute to read.
How it works
You provide the unique ID of the email you want to read. The tool then accesses your Gmail account and retrieves the content of that email.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
gmail +read
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto 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
- gws-shared — Global flags and auth
- gws-gmail — All send, read, and manage email commands
FAQ
What is an email ID?
It's a unique code that identifies each email in your Gmail account.
Can I see the email in code format?
Yes, you can ask to see the email's body in HTML format.
How do I find an email's ID?
The ID is usually a long code that appears in the URL when you view the email in Gmail.
Details
Original description by the author
Gmail: Read a message and extract its body or headers.
repo: googleworkspace/cli
Popularity
- GitHub stars
- 32k
- Ranking position
- #9168
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
configure-channel
394kTeaches your agent to connect a chat app such as Telegram to OpenClaw, store the bot token safely, and check that messages flow.
discord
394kHelps your agent read, send, edit, and react to Discord messages through OpenClaw, checking the exact message before making changes.