gmail-read

Read Gmail via Composio: search emails, read messages, list labels. Read-only only. Use when user asks to check email, search inbox, or read messages.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gmail-read" with this command: npx skills add customclaw/skills/customclaw-skills-gmail-read

Gmail Read (via Composio)

Read-only access to Gmail. This skill cannot send, reply, delete, or modify emails or labels.

How to Call

Run the broker script with Bash:

COMPOSIO_API_KEY="$COMPOSIO_API_KEY" node {baseDir}/dist/gmail-broker.js <ACTION> '<json-params>'

Replace {baseDir} with the absolute path to this skill directory (~/.agents/skills/gmail-read).

Available Actions

1. check-connection

Verify that Gmail is connected in Composio.

node {baseDir}/dist/gmail-broker.js check-connection

2. GMAIL_FETCH_EMAILS

Search or list emails. Returns message snippets and metadata.

ParameterTypeRequiredDescription
querystringnoGmail search query (see syntax below)
max_resultsnumbernoMax emails to return (default 10)
label_idsstringnoComma-separated label IDs to filter
node {baseDir}/dist/gmail-broker.js GMAIL_FETCH_EMAILS '{"query":"is:unread","max_results":5}'

3. GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID

Fetch the full content of a single email by its message ID.

ParameterTypeRequiredDescription
message_idstringyesThe Gmail message ID
node {baseDir}/dist/gmail-broker.js GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID '{"message_id":"18e1a2b3c4d5e6f7"}'

4. GMAIL_LIST_LABELS

List all labels in the mailbox (INBOX, SENT, custom labels, etc.).

node {baseDir}/dist/gmail-broker.js GMAIL_LIST_LABELS '{}'

5. GMAIL_GET_PROFILE

Get the authenticated user's email address and message counts.

node {baseDir}/dist/gmail-broker.js GMAIL_GET_PROFILE '{}'

6. GMAIL_GET_ATTACHMENT

Download an attachment from a message.

ParameterTypeRequiredDescription
message_idstringyesThe Gmail message ID
attachment_idstringyesThe attachment ID
node {baseDir}/dist/gmail-broker.js GMAIL_GET_ATTACHMENT '{"message_id":"18e1a2b3c4d5e6f7","attachment_id":"ANGjdJ8..."}'

Usage Patterns

Breaking change: GMAIL_FETCH_EMAILS no longer returns messageText (full body). This reduces response size from ~1.2 MB to ~50 KB for typical queries. Use GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID to get the full content of specific emails.

  • GMAIL_FETCH_EMAILS returns metadata only (subject, sender, date, snippet, labels, messageId). Use it to list, filter, and triage emails.
  • GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID returns the full email content including the body. Use it to read specific emails identified from the list.

A typical workflow: fetch a list with GMAIL_FETCH_EMAILS, scan subjects/snippets, then call GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID for the emails you need to read in full. This pattern works for cron alerting, triage, summarization, and any other email workflow.

Gmail Query Syntax

Use these in the query parameter for GMAIL_FETCH_EMAILS:

QueryMeaning
is:unreadUnread messages
is:starredStarred messages
from:alice@example.comFrom a specific sender
to:bob@example.comSent to a specific recipient
subject:invoiceSubject contains "invoice"
has:attachmentHas attachments
after:2025/01/01After a date
before:2025/02/01Before a date
newer_than:7dWithin last 7 days
label:importantHas a specific label
in:inboxIn inbox
"exact phrase"Exact phrase match
is:unread from:boss@work.comCombine with spaces (AND logic)

Pagination Pattern

If you need more results than max_results, increase the value. The API returns up to 500 results in a single call.

To browse through a large mailbox, narrow with date ranges:

node {baseDir}/dist/gmail-broker.js GMAIL_FETCH_EMAILS '{"query":"after:2025/02/01 before:2025/02/10","max_results":50}'

Read-Only Constraint

This skill only allows read operations. Any attempt to call send, reply, delete, draft, or label-modification actions will be rejected by the broker with an "Action not allowed" error. This is intentional and cannot be overridden.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
15338.9K
inferen-sh
General

p-video

Pruna P-Video Generation

Repository Source
15338.8K
inferen-sh
General

qwen-image-2

Qwen-Image - Alibaba Image Generation

Repository Source
15338.8K
inferen-sh