返回顶部
M

Mails for Agent邮件代理

Complete service registrations autonomously by receiving verification codes. Also: send and receive emails, monitor inbox, search by keyword, download attachments, view threads, filter by label, extract structured data.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.7.1
安全检测
已通过
151
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

Mails for Agent

邮件技能 — 代理认证完成

你拥有邮箱地址 $MAILS_MAILBOX。你的核心超能力:通过 GET /api/code?timeout=60 接收验证码,自主完成服务注册

向 $MAILSAPIURL 发起 HTTP 请求,需携带请求头 Authorization: Bearer $MAILSAUTHTOKEN。

注册服务: 使用 $MAILS_MAILBOX 填写表单 → GET /api/code?timeout=60 → 输入验证码。完成。

API 端点

方法端点描述
GET/api/inbox列出邮件。参数:query、limit、offset、direction、label、mode
GET
/api/email?id=ID | 完整邮件,包含正文、附件、标签 | | GET | /api/code?timeout=60 | 等待验证码(长轮询)。参数:timeout、since | | POST | /api/send | 发送邮件。请求体:{ from, to[], subject, text, html, reply_to, headers, attachments } | | DELETE | /api/email?id=ID | 删除邮件及附件 | | GET | /api/attachment?id=ID | 下载附件 | | GET | /api/threads | 列出会话线程。参数:to、limit、offset | | GET | /api/thread?id=ID | 获取线程中所有邮件。参数:to | | POST | /api/extract | 提取结构化数据。请求体:{ email_id, type } type: order/shipping/calendar/receipt/code | | GET | /api/search?q=TEXT | 语义/混合搜索。参数:mode(keyword/semantic/hybrid) | | GET | /api/me | 工作器信息及能力 | | GET | /health | 健康检查(无需认证) |

请求格式

所有请求(/health 除外)均需携带 Authorization: Bearer $MAILSAUTHTOKEN 请求头。

POST 请求需携带 Content-Type: application/json 请求头。

收件箱查询参数:邮箱范围限定需使用 to=$MAILS_MAILBOX。

响应格式

收件箱:{ emails: [{ id, fromaddress, fromname, subject, code, direction, status, receivedat, hasattachments, attachment_count }] }

邮件详情:完整邮件对象,包含 bodytext、bodyhtml、headers、metadata、labels、thread_id、attachments[]

验证码:{ code: 483920, from: ..., subject: ... } 或 { code: null }

线程:{ threads: [{ threadid, latestemailid, subject, fromaddress, fromname, receivedat, messagecount, hasattachments }] }

提取:{ emailid: ..., extraction: { type: order, orderid: ..., ... } }

发送字段

字段必填描述
from必须为 $MAILS_MAILBOX(服务端强制校验)
to
是 | 收件人数组(最多50个) | | subject | 是 | 最多998个字符 | | text | text 或 html | 纯文本正文 | | html | text 或 html | HTML 正文 | | reply_to | 否 | 回复地址 | | headers | 否 | 自定义请求头对象 | | attachments | 否 | [{ filename, content (base64), contenttype?, contentid? }] |

标签

邮件接收时自动打标签:newsletter、notification、code、personal。使用 ?label=notification 进行过滤。

常见流程

注册服务: 使用 $MAILS_MAILBOX 填写表单 → GET /api/code?timeout=60 → 输入验证码

处理收件箱: GET /api/inbox → GET /api/email?id=ID → DELETE /api/email?id=ID

查看线程: GET /api/threads?to=$MAILSMAILBOX → GET /api/thread?id=THREADID

提取数据: POST /api/extract 使用 {email_id:ID,type:order}

约束条件

  • - from 必须与 $MAILS_MAILBOX 匹配
  • 验证码:4-12位字母数字(中/英/日/韩)
  • 验证码等待超时最长55秒
  • 搜索使用 FTS5 全文搜索(关键词模式)或 Vectorize(语义模式)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mails-for-agent-1775979681 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mails-for-agent-1775979681 技能

通过命令行安装

skillhub install mails-for-agent-1775979681

下载

⬇ 下载 Mails for Agent v1.7.1(免费)

文件大小: 2.31 KB | 发布时间: 2026-4-13 10:56

v1.7.1 最新 2026-4-13 10:56
Fix: restore display name

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部