Command Reference
Core commands
agent-email create
agent-email read <email|default> [--limit <n>] [--full] [--wait <s>] [--interval <s>]
agent-email show <email|default> <messageId>
agent-email delete <email|default> <messageId>Profile commands
agent-email accounts list
agent-email accounts remove <email|default>
agent-email use <email|default>
agent-email config path
agent-email aboutOutput envelope
All commands return JSON by default:
{
"ok": true,
"command": "create",
"data": {}
}or on failure:
{
"ok": false,
"command": "read",
"error": {
"code": "ACCOUNT_NOT_FOUND",
"message": "...",
"hint": "..."
}
}High-signal fields
create:data.email,data.accountId,data.activeEmailread:data.messages[]withid,from.address,subject,createdAt,seenshow:data.message, optionaldata.source
Do not extract or print secret fields (password, token) in summaries.
Common automation snippets
Read active inbox and extract first message id:
agent-email read default | jq -r '.data.messages[0].id'Fetch full first message:
MSG_ID=$(agent-email read default | jq -r '.data.messages[0].id')
agent-email show default "$MSG_ID"