OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  mailbox:用于阅读和管理电子邮件的命令行工具

mailbox:用于阅读和管理电子邮件的命令行工具

 
  dashboard ·  2026-02-05 16:26:55 · 3 次点击  · 0 条评论  

邮箱命令行工具(OpenClaw 技能)

将邮箱命令行工具用作读取和管理电子邮件的工具。OpenClaw 负责渠道交付和调度。邮箱命令行工具返回结构化的 JSON 输出和可选的文本摘要。

要求

  • 已安装邮箱命令行工具 (npm install -g mailbox-cli)
  • 凭据存储在 ~/.config/mailbox/auth.json

命令(示例)

  • mailbox account list --json
  • mailbox email list --limit 20 --json
  • mailbox email show <email_uid> --account-id <account_id> --json
  • mailbox email show <email_uid> --account-id <account_id> --preview --no-html --json
  • mailbox email show <email_uid> --account-id <account_id> --preview --no-html --strip-urls --json
  • mailbox email delete <email_uid> --account-id <account_id> --folder INBOX --confirm --json
  • mailbox digest run --json
  • mailbox monitor run --json
  • mailbox inbox --limit 15 --text

安全规则

  • 自动化操作始终使用 --json 并检查 success 字段。
  • 执行破坏性操作时务必包含 --account-id
  • 除非提供 --confirm 参数,否则破坏性操作默认为试运行模式。
  • 在可能的情况下,执行变更操作前优先使用 --dry-run

输出约定

  • JSON 响应包含 successerror 字段。
  • error 是一个对象,格式为 { code, message, detail? }
  • 退出代码:0 表示成功,1 表示操作失败,2 表示用法无效。
3 次点击  ∙  0 人收藏  
登录后收藏  
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor