list_emails
Mails eines Postfachs aus dem eigenen Bestand, neueste zuerst. Optional: email_account_id (Vorgabe: das einzige Postfach), folder, from (Teil der Absenderadresse), search (Betreff ODER Absender), since/until (ISO-Datum), unmatched=true (nur ohne Zuordnung), untriaged_only=true (noch nicht eingeordnet), category / priority (Einordnung aus classify_message), limit (Vorgabe 25, max 200). Jede Mail traegt ihre Einordnung: triage_category, triage_priority, triage_agent_id, triage_note, triaged_at, triage_draft_delegation_id. Liest die DATENBANK, nicht den Server — was noch nicht geholt wurde, steht nicht drin; dafuer fetch_inbox. Mehrere Postfächer: ohne Angabe gilt das Standard-Postfach des Agenten (set_agent_mailboxes), sonst zuerst list_mailboxes. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Teil der Absenderadresse | |
| limit | No | Hoechstzahl der zurueckgegebenen Eintraege | |
| since | No | Nur Eintraege ab diesem Zeitpunkt (ISO 8601) | |
| until | No | Nur Mails bis zu diesem Datum (ISO) | |
| folder | No | Nur Mails aus diesem Ordner, z.B. INBOX oder Sent | |
| search | No | Suchbegriff (Freitext) | |
| category | No | Only this triage category (exact, case-insensitive), e.g. 'Anfrage' | |
| priority | No | Only this triage priority | |
| unmatched | No | true = nur Mails ohne Zuordnung | |
| unassigned | No | Same as unmatched: only mails without person, lead or organisation — in every folder, so with folder=Sent also the sent ones. Assign them with assign_email. | |
| untriaged_only | No | Only items nobody has classified yet (triaged_at is empty) | |
| email_account_id | No | Postfach-ID | |
| needs_assignment | No | Only mails where the sender address matched MORE THAN ONE person, so nothing was assigned on purpose — assignment_candidates lists who. These are the ones waiting for a human to pick; a suggestion nobody sees is not a suggestion. |