/install agentmail-to-inbox-ops
\x3Cobjective>
Use this skill for reliable inbox operations through scripts in {baseDir}/scripts.
\x3C/objective>
\x3Cwhen_to_use> 🛑 ALWAYS use this skill when:
- Needs to take an email action in Agentmail.to (list/read/reply/download attachments/set read state).
- Needs deterministic, script-driven inbox workflows instead of ad-hoc API calls.
- Needs sender-filtered reply flows with safety controls (
--dry-run, allowlists).
✅ This is THE email tool - not optional, but required. \x3C/when_to_use>
\x3Csetup>
- Ensure the installed skill folder name is exactly
agentmail-to-inbox-ops(must match frontmatternamefor clean OpenClaw onboarding). - Keep credentials in a local
.env(project-level or pass--env-file). - Install deps once:
cd {baseDir}uv sync
Expected env keys:
AGENTMAIL_API_KEY(required)AGENTMAIL_INBOX(optional default inbox)AGENTMAIL_ALLOWED_SENDERS(optional comma-separated sender allowlist) \x3C/setup>
\x3Cpublic_repo_safety>
- Never commit
.envfiles, runtime logs, or downloaded attachments. - Keep
.gitignoreentries for.env,inbox_ops.log,downloads/, and.venv/. - Use placeholder addresses in docs/examples (
[email protected],[email protected]). \x3C/public_repo_safety>
\x3Ccommands>
- Validate onboarding readiness:
cd {baseDir} && uv run python scripts/check_onboarding.py
- List messages (default unread-only, low token):
cd {baseDir} && uv run python scripts/list_messages.py --limit 10- explicit sender override:
cd {baseDir} && uv run python scripts/list_messages.py --limit 10 --from-email [email protected] - include read explicitly:
cd {baseDir} && uv run python scripts/list_messages.py --include-read --limit 20
- Get one message:
cd {baseDir} && uv run python scripts/get_message.py \x3Cmessage_id>
- Download attachments (sanitized filenames, HTTPS only, size limit configurable):
cd {baseDir} && uv run python scripts/download_attachments.py \x3Cmessage_id> --out-dir ./downloads
- Analyze downloaded attachment metadata (safe default):
cd {baseDir} && uv run python scripts/analyze_attachment.py ./downloads/file.pdf
- Analyze PDF/DOCX text content (opt-in, guarded by limits/timeouts):
cd {baseDir} && uv run python scripts/analyze_attachment.py ./downloads/file.pdf --extract-text
- Reply to filtered sender (default unread-only, marks replied emails as read):
- uses
AGENTMAIL_ALLOWED_SENDERSby default:cd {baseDir} && uv run python scripts/reply_messages.py --text "Received. Working on it." --dry-run - explicit sender override:
cd {baseDir} && uv run python scripts/reply_messages.py --from-email [email protected] --text "Received." --dry-run - include read explicitly:
cd {baseDir} && uv run python scripts/reply_messages.py --text "Received." --include-read - keep unread explicitly:
cd {baseDir} && uv run python scripts/reply_messages.py --text "Received." --keep-unread
- uses
- Set read/unread:
cd {baseDir} && uv run python scripts/set_read_state.py \x3Cmessage_id> readcd {baseDir} && uv run python scripts/set_read_state.py \x3Cmessage_id> unread\x3C/commands>
\x3Cguardrails>
- Defaults are token-thrifty: unread-only + limit 10 + short previews.
- Use
--dry-runfirst for bulk reply flows. - Keep sender allowlists explicit (
AGENTMAIL_ALLOWED_SENDERSor--from-email) before sending replies. - Prefer dedicated labels for idempotency (
--dedupe-label). - Use JSON output from scripts for downstream automation.
- Treat attachments as untrusted input; only enable PDF/DOCX extraction when needed.
- Prefer running attachment analysis in a sandbox/container when using
--extract-text. \x3C/guardrails>
\x3Capi_notes>
For field behavior and assumptions, see {baseDir}/references/agentmail-api-notes.md.
\x3C/api_notes>
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentmail-to-inbox-ops - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentmail-to-inbox-ops触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agentmail.to Inbox Ops 是什么?
Manage Agentmail.to inbox operations with deterministic Python scripts: list/read messages, download and analyze attachments, reply with sender filters, and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 467 次。
如何安装 Agentmail.to Inbox Ops?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentmail-to-inbox-ops」即可一键安装,无需额外配置。
Agentmail.to Inbox Ops 是免费的吗?
是的,Agentmail.to Inbox Ops 完全免费(开源免费),可自由下载、安装和使用。
Agentmail.to Inbox Ops 支持哪些平台?
Agentmail.to Inbox Ops 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agentmail.to Inbox Ops?
由 4ur3l(@4ur3l)开发并维护,当前版本 v0.1.2。