Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
googleworkspace avatar

Gws Gmail Read

  • 33.1k installs
  • 30k repo stars
  • Updated July 22, 2026
  • googleworkspace/cli

gws-gmail-read is a Google Workspace CLI skill that reads a Gmail message by ID and extracts its body or headers from the terminal.

About

gws-gmail-read is an agent skill wrapping the Google Workspace CLI command gws gmail +read. It reads a single Gmail message by ID and extracts the body or headers, with flags for headers, JSON output, HTML body, and dry-run. It converts HTML-only messages to plain text and handles multipart and base64 decoding. A developer or agent uses it to pull a specific email's content from the terminal or inside a larger gws workflow.

  • Reads a Gmail message body or headers by ID from the CLI
  • Text/JSON/HTML output with dry-run support
  • Auto-converts HTML and handles base64/multipart decoding

Gws Gmail Read by the numbers

  • 33,117 all-time installs (skills.sh)
  • +1,388 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #43 of 3,301 Productivity & Planning skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

gws-gmail-read capabilities & compatibility

Free skill; requires the gws CLI authenticated to a Google account

Capabilities
email read · header extraction · email parsing
Works with
gmail
Use cases
email
Pricing
Free
From the docs

What gws-gmail-read says it does

Gmail: Read a message and extract its body or headers.
SKILL.md
Converts HTML-only messages to plain text automatically.
SKILL.md
Handles multipart/alternative and base64 decoding.
SKILL.md
npx skills add https://github.com/googleworkspace/cli --skill gws-gmail-read

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs33.1k
repo stars30k
Security audit2 / 3 scanners passed
Last updatedJuly 22, 2026
Repositorygoogleworkspace/cli

How do I read a specific Gmail message's body or headers from the terminal or an agent workflow?

email

Who is it for?

Agents or developers on the gws CLI that need to fetch one email's body or headers by message ID.

Skip if: Sending or managing email; those live in the broader gws-gmail skill, and auth setup lives in gws-shared.

When should I use this skill?

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

What you get

The extracted body or headers of a Gmail message, in text, JSON, or HTML form.

  • Extracted Gmail message body or headers

By the numbers

  • 5 documented flags (--id, --headers, --format, --html, --dry-run)

Files

SKILL.mdMarkdownGitHub ↗

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

FlagRequiredDefaultDescription
--idThe Gmail message ID to read
--headersInclude headers (From, To, Subject, Date) in the output
--formattextOutput format (text, json)
--htmlReturn HTML body instead of plain text
--dry-runShow 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

Related skills

How it compares

Use gws-gmail-read to extract message content by ID; use gws-gmail-reply-all or gws-gmail-forward after reading when responding or handing off.

FAQ

What input does gws-gmail-read need?

A required --id (the Gmail message ID); optional flags add headers, choose text/json format, return HTML body, or dry-run the request.

Does it handle HTML-only emails?

Yes. It converts HTML-only messages to plain text automatically and handles multipart/alternative and base64 decoding.

Is Gws Gmail Read safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.