gmail

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

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/morphicai/openclaw-morphixai/gmail
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.

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. 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.00034 $0.00932
Opus 5 $0.00017 $0.00466
Sonnet 5 $0.00007 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured yesterday against content hash 22ffe303583b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (0 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 932 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-09-01.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens