← All toolsCommunicationemailAll editions

MARK_EMAIL_READ

Mark email(s) as read or unread.

Parameters

NameTypeRequiredDescription
email_idstringyesEmail ID(s) to mark, comma-separated
readstring'true' to mark read, 'false' to mark unread (default 'true')
folderstringIMAP folder (default INBOX)

How to use it

You normally trigger this by describing what you want in chat — the agent selects MARK_EMAIL_READ automatically. For example:

Try saying
“mark my email”

In a workflow

As a step in a multi-step workflow DAG:

json
{
  "id": "s1",
  "agent": "email",
  "action": "MARK_EMAIL_READ",
  "args": {
    "email_id": "name@example.com",
    "read": "…",
    "folder": "…"
  },
  "depends_on": [],
  "outputs": []
}

Direct call

For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.

bash
curl -X POST http://127.0.0.1:8000/execute_tool \
  -H "Content-Type: application/json" \
  -d '{"tool_name":"MARK_EMAIL_READ","args":{"email_id":"name@example.com","read":"…","folder":"…"}}'

Part of the email plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.