gmail

gmail is a skill for Claude Code, Codex from Morphicai/openclaw-morphixai. It costs 34 tokens per session (932 once invoked), scanned A, original, MIT.

An email tool for Gmail, Google's email service. It can read, search, send, and label messages, but it is unavailable until a Gmail account is linked.

In plain words
What is it for?
Finding messages with Gmail search filters, reading full emails, sending email with copies to others, and listing or managing labels.
Why use it?
It removes the need to switch between your coding agent and Gmail for routine email work. Account linking is required before it can be used.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Finding messages with Gmail search filters, reading full emails, sending email with copies to others, and listing or managing labels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morphicai/openclaw-morphixai/gmail
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.

Any agent
npx skills add Morphicai/openclaw-morphixai --skill gmail
Clone the repo
git clone --depth 1 https://github.com/Morphicai/openclaw-morphixai

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/morphicai/openclaw-morphixai/gmail/github.svg)](https://agentmods.dev/skills/morphicai/openclaw-morphixai/gmail)
Your own site
<a href="https://agentmods.dev/skills/morphicai/openclaw-morphixai/gmail"><img src="https://agentmods.dev/badge/skills/morphicai/openclaw-morphixai/gmail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gmail

Your own site · 80×15
<a href="https://agentmods.dev/skills/morphicai/openclaw-morphixai/gmail"><img src="https://agentmods.dev/badge/skills/morphicai/openclaw-morphixai/gmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00034 $0.00932
Opus 5.5 $0.00014 $0.00373
Sonnet 5.5 $0.00007 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured 1mo ago against content hash 22ffe303583b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gmail 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 1mo 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.

packages/openclaw-plugin/skills/gmail/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gmail 邮件(暂不可用)

状态:暂不可用 — Gmail 账号尚未链接,该工具暂时不可使用。如需启用,请通过 mx_link 工具链接 Gmail 账号(app: gmail)。

通过 mx_gmail 工具管理 Gmail 邮箱:读取、搜索、发送邮件,管理标签。

前置条件

  1. 安装插件: openclaw plugins install openclaw-morphixai
  2. 获取 API Key: 访问 morphix.app/api-keys 生成 mk_xxxxxx 密钥
  3. 配置环境变量: export MORPHIXAI_API_KEY="mk_your_key_here"
  4. 链接账号: 访问 morphix.app/connections 链接 Gmail 账号,或通过 mx_link 工具链接(app: gmail)

核心操作

查看用户信息

mx_gmail:
  action: get_profile

列出邮件

mx_gmail:
  action: list_messages
  max_results: 10

list_messages 只返回邮件 ID 列表,需用 get_message 获取完整内容。

查看邮件详情

mx_gmail:
  action: get_message
  message_id: "18dxxxxxxxx"

搜索邮件

mx_gmail:
  action: search_messages
  query: "from:[email protected] subject:周报"
  max_results: 5

Gmail 搜索语法支持:

  • from: / to: — 发件人/收件人
  • subject: — 主题
  • is:unread / is:starred — 未读/星标
  • newer_than:7d / older_than:30d — 时间范围
  • has:attachment — 有附件
  • label: — 标签

发送邮件

mx_gmail:
  action: send_mail
  to: "[email protected]"
  subject: "项目更新"
  body: "Hi,项目进展如下:\n1. 完成了 API 开发\n2. 正在编写测试"
  cc: "[email protected]"

列出标签

mx_gmail:
  action: list_labels

标记已读

mx_gmail:
  action: mark_as_read
  message_id: "18dxxxxxxxx"

删除邮件(移入回收站)

mx_gmail:
  action: trash_message
  message_id: "18dxxxxxxxx"

常见工作流

查看未读邮件

1. mx_gmail: list_messages, q: "is:unread", max_results: 5
2. mx_gmail: get_message, message_id: "xxx"  → 逐条查看
3. mx_gmail: mark_as_read, message_id: "xxx"  → 标记已读

搜索并回复(通过发送新邮件)

1. mx_gmail: search_messages, query: "from:[email protected]"
2. mx_gmail: get_message → 查看内容
3. mx_gmail: send_mail, to: "[email protected]", subject: "Re: xxx"

注意事项

  • list_messages 返回的是邮件 ID 列表,需用 get_message 获取完整内容
  • 发送邮件内容为纯文本格式
  • Gmail 搜索语法功能强大,建议充分利用
  • account_id 参数通常省略,工具自动检测已链接的 Gmail 账号

Read the full file on GitHub · 130 lines

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. 1mo ago First seen · 130 lines · 34 tokens per session scan A 22ffe303583b

Subscribe to this mod's changes

gmail is a skill published in the GitHub repository Morphicai/openclaw-morphixai (1 stars, last pushed 14d ago), licensed MIT. It adds 34 tokens to every session and 932 once invoked, about $0.0001 per session on Opus 5.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-09-01.