gmail-tool

gmail-tool is a skill for Claude Code, Codex from xuiltul/animaworks. It costs 42 tokens per session (376 once invoked), scanned A, original, Apache-2.0.

A command-line connection to Gmail, Google's email service, using account authorisation. It can check unread messages, read email bodies, and create drafts.

In plain words
What is it for?
Use it to list unread mail, fetch a message by its ID, or create a draft addressed to someone, optionally within an existing conversation.
Why use it?
It avoids switching tools when an agent needs to inspect email or prepare a reply without sending it.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/xuiltul/animaworks/gmail-tool
Any agent
npx skills add xuiltul/animaworks --skill gmail-tool
Clone the repo
git clone --depth 1 https://github.com/xuiltul/animaworks

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gmail-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuiltul/animaworks/gmail-tool.svg)](https://agentmods.dev/skills/xuiltul/animaworks/gmail-tool)
Your own site
<a href="https://agentmods.dev/skills/xuiltul/animaworks/gmail-tool"><img src="https://agentmods.dev/badge/skills/xuiltul/animaworks/gmail-tool.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00376
Opus 5 $0.00021 $0.00188
Sonnet 5 $0.00008 $0.00075
Haiku 4.5 $0.00004 $0.00038

Measured 4d ago against content hash c832def7e142, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gmail-tool scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/en/common_skills/gmail-tool/SKILL.md · 52 lines

What it actually says

Gmail Tool

External tool for Gmail operations via OAuth2 API access.

Invocation via Bash

Use Bash with animaworks-tool gmail <subcommand> [args]:

animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]

Actions

unread — List unread emails

{"tool_name": "gmail", "action": "unread", "args": {"max_results": 20}}

read_body — Read email body

{"tool_name": "gmail", "action": "read_body", "args": {"message_id": "message ID"}}

draft — Create draft

{"tool_name": "gmail", "action": "draft", "args": {"to": "[email protected]", "subject": "Subject", "body": "Body text", "thread_id": "thread ID (optional)"}}

CLI Usage (S/C/D/G-mode)

animaworks-tool gmail unread [-n 20]
animaworks-tool gmail read MESSAGE_ID
animaworks-tool gmail draft --to ADDR --subject SUBJ --body BODY [--thread-id TID]

Notes

  • OAuth2 authentication flow required on first use
  • credentials.json and token.json must be in ~/.animaworks/
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 52 lines · 42 tokens per session scan A c832def7e142

Subscribe to this mod's changes

gmail-tool is a skill published in the GitHub repository xuiltul/animaworks (254 stars, last pushed today), licensed Apache-2.0. It adds 42 tokens to every session and 376 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

email

Send emails directly from your agent. Supports HTML and plain text. Works with Unosend (5,000 free emails/month) or any SMTP provider.

citedy/adclaw · 33 tokens

imap-smtp-email

Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, 126.com, QQ Mail, and any standard IMAP/SMTP server with multi-account support.

wentorai/Research-Claw · 51 tokens

inbox-triage

Email inbox triage for AI agents — scan, categorize, draft replies, surface urgent items, and archive noise. Supports Gmail and IMAP for inbox zero workflows.

theagentledger/agent-skills · 39 tokens

hive.browser-automation

Required before any hive-browser CLI command. The browser is driven from the terminal by running hive-browser ... --json via terminalexec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues…

aden-hive/hive · 142 tokens

hive.linkedin-automation

Read before automating LinkedIn with browser tools. LinkedIn combines shadow DOM (#interop-outlet), strict Trusted Types CSP that silently drops innerHTML, Lexical composer, native beforeunload dialogs that hang the bridge, and aggressive spam filters — each has bitten us at least once. Verified flows for profile…

aden-hive/hive · 99 tokens

hive.worker-delegation

Concrete patterns for breaking colony work into parallel worker jobs via runplaybook — when fan-out helps, how to model the goal as a tracker table, write the worker skill, author the playbook, pilot, and let convergence retry/resume the gap.

aden-hive/hive · 58 tokens