agent-email-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Email CLI
Agent Email CLI
Overview
概述
Use this skill to operate the command safely and predictably for agent workflows that need inbox access.
agent-emailPrefer JSON-native command output and return key fields (, , , , ) in your summaries.
emailmessageIdsubjectcreatedAtfrom.address使用本skill安全、可预测地操作命令,满足需要收件箱访问能力的Agent工作流需求。
agent-email优先使用JSON原生命令输出,并在摘要中返回关键字段(、、、、)。
emailmessageIdsubjectcreatedAtfrom.addressWorkflow
工作流程
- Verify CLI availability.
bash
command -v agent-email
agent-email --helpIf missing, install:
bash
npm install -g @zaddy6/agentemail- 验证CLI可用性。
bash
command -v agent-email
agent-email --help如果未找到,请安装:
bash
npm install -g @zaddy6/agentemailor
或
bun install -g @zaddy6/agentemail
2. Create a mailbox account.
```bash
agent-email createRecord these fields from JSON output:
data.emaildata.accountIddata.activeEmail
Do not record, repeat, or print secret values such as mailbox passwords or tokens.
- Read latest messages.
bash
agent-email read <email|default>For inbox waiting/polling:
bash
agent-email read <email|default> --wait 30 --interval 2For full message payloads:
bash
agent-email read <email|default> --full- Retrieve one message in detail.
bash
agent-email show <email|default> <messageId>Use when you need body/source details for verification links, codes, or full content extraction.
show- Manage mailbox profiles.
bash
agent-email accounts list
agent-email use <email|default>
agent-email accounts remove <email>Avoid commands that require entering secrets on the command line in agent logs.
- Delete processed/irrelevant message when requested.
bash
agent-email delete <email|default> <messageId>bun install -g @zaddy6/agentemail
2. 创建邮箱账户。
```bash
agent-email create从JSON输出中记录以下字段:
data.emaildata.accountIddata.activeEmail
请勿记录、重复或打印邮箱密码、token等机密值。
- 读取最新消息。
bash
agent-email read <email|default>如需收件箱等待/轮询:
bash
agent-email read <email|default> --wait 30 --interval 2如需获取完整消息载荷:
bash
agent-email read <email|default> --full- 获取单条消息的详细信息。
bash
agent-email show <email|default> <messageId>当你需要获取正文/源详情以提取验证链接、验证码或完整内容时,请使用命令。
show- 管理邮箱配置。
bash
agent-email accounts list
agent-email use <email|default>
agent-email accounts remove <email>避免使用需要在命令行输入机密信息的命令,以防出现在Agent日志中。
- 按需删除已处理/无关消息。
bash
agent-email delete <email|default> <messageId>Operational Guidance
操作指南
- Keep command output machine-readable; avoid forcing human output unless requested.
- Prefer alias when user does not specify an email.
default - Never echo, store, or summarize secret values (,
password) from command output.token - If command fails, surface the JSON error and
codefields directly.hint - For auth failures (/401), rerun command once and request user intervention if credentials must be re-established.
AUTH_REQUIRED - For rate limits (/429), retry after short delay.
RATE_LIMITED
- 保持命令输出为机器可读格式,除非有要求,否则不要强制转为人类可读输出。
- 当用户未指定邮箱时,优先使用别名。
default - 永远不要回显、存储或摘要命令输出中的机密值(、
password)。token - 如果命令执行失败,直接展示JSON错误的和
code字段。hint - 对于认证失败(/401),重试一次命令,如果需要重新建立凭证,则请求用户介入。
AUTH_REQUIRED - 对于速率限制(/429),短暂延迟后重试。
RATE_LIMITED
Troubleshooting
故障排查
- : ensure
command not foundor npm global bin path is on~/.bun/bin.PATH - : run
NO_ACTIVE_ACCOUNToragent-email create.agent-email use <email> - : run
ACCOUNT_NOT_FOUNDand pick a valid address.agent-email accounts list - during npm publish: use npm trusted publishing for CI or publish locally with OTP.
EOTP
- :确保
command not found或npm全局bin路径已加入~/.bun/bin。PATH - :运行
NO_ACTIVE_ACCOUNT或agent-email create。agent-email use <email> - :运行
ACCOUNT_NOT_FOUND并选择有效的地址。agent-email accounts list - npm发布时出现:在CI环境使用npm可信发布,或本地通过OTP发布。
EOTP
References
参考资料
- For command cheat sheet and JSON field map, read references/commands.md.
- 如需命令速查表和JSON字段映射,请阅读references/commands.md。