360 Secure SkillHub
360 安全技能中心

Resend

基于 Resend API 的 resend 命令行工具,用于列出、查看已接收(入站)邮件及其附件,并查看已配置域名的 DNS 信息;支持 --json 输出并可配合 jq 脚本化处理,仅支持接收邮件,不支持发送。

mjrussell
mjrussell
热度 76.65
最近更新 2026-05-11 15:48:53
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流 / 邮件起草

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add resend
Metadata
name
resend
description
Manage received (inbound) emails and attachments via Resend API. Use when user asks about their emails, received messages, or email attachments.
homepage
https://resend.com
metadata
{"clawdbot":{"emoji":"📧","requires":{"bins":["resend"],"env":["RESEND_API_KEY"]}}}

Resend CLI

CLI for the Resend email API. Query received (inbound) emails and attachments.

Installation

npm install -g @mjrussell/resend-cli

Setup

  1. Sign up at resend.com
  2. Set up inbound email routing for your domain
  3. Create API key at API Keys → Create API key (needs read permissions)
  4. Set environment variable: export RESEND_API_KEY="re_your_key"

Commands

List Emails

resend email list              # List recent emails (default 10)
resend email list -l 20        # List 20 emails
resend email list --json       # Output as JSON

Get Email Details

resend email get <id>          # Show email details
resend email get <id> --json   # Output as JSON

Attachments

resend email attachments <email_id>                    # List attachments
resend email attachment <email_id> <attachment_id>     # Get attachment metadata
resend email attachments <email_id> --json             # Output as JSON

Domains

resend domain list             # List configured domains
resend domain get <id>         # Get domain details with DNS records
resend domain list --json      # Output as JSON

Usage Examples

User: "Do I have any new emails?"

resend email list -l 5

User: "Show me the latest email"

resend email list --json | jq -r '.data.data[0].id'  # Get ID
resend email get <id>

User: "What attachments are on that email?"

resend email attachments <email_id>

User: "What domains do I have set up?"

resend domain list

User: "Show me the full content of email X"

resend email get <email_id>

Notes

  • This CLI only supports received (inbound) emails, not sending
  • Use --json flag and pipe to jq for scripting
  • Email IDs are UUIDs shown in list output