list_inbound_messages
Read the messages that arrived through the channel ingest (ingest_message — Beeper networks such as WhatsApp/Signal/LinkedIn, desktop mail — plus Mattermost, WeCom, DingTalk, Feishu/Lark, e-signature status callbacks (channel 'esign') and WhatsApp ad leads), newest first. This is the inbox for those channels; list_whatsapp_messages only covers Twilio. Read-only. Filters: channel (exact, e.g. 'beeper', 'mattermost', 'wecom', 'dingtalk', 'feishu'), since (ISO-8601; messages recorded at or after), search (contained in sender, sender_name, chat_name or body; case-insensitive), unassigned_only (true = only messages not yet on any lead's timeline), untriaged_only (true = only messages nobody has classified yet), category / priority (the classification from classify_message), limit (default 20, max 100). Each row: id, channel, external_id, chat_id, chat_name, sender, sender_name, subject, body, received_at, created_at, network (metadata.network if present), assigned + lead_ids (leads whose timeline already holds it), and the classification: triage_category, triage_priority, triage_agent_id, triage_note, triaged_at, triage_draft_delegation_id. The reply carries a hint on how to attach a message to a lead (find_lead_by_channel / resolve_person → add_lead_message with inbound_message_id → link_channel). Reply drafts to an incoming item: in delegate_to_user ALWAYS set source {kind: 'email'|'inbound_message', id} on EACH question (questions[].source), also when one delegation holds many drafts — otherwise the item does not carry its draft and /app/inbox does not count it under 'Entwürfe zur Freigabe'. Check unlinked_sources in the result.
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_inbound_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default 20, max 100) | |
| since | No | ISO-8601; only messages recorded at or after this time | |
| search | No | Substring of sender, sender_name, chat_name or body | |
| channel | No | Exact source channel, e.g. 'beeper', 'mattermost', 'wecom', 'dingtalk', 'feishu', 'esign', 'mail' | |
| category | No | Only this triage category (exact, case-insensitive), e.g. 'Anfrage' | |
| priority | No | Only this triage priority | |
| untriaged_only | No | Only items nobody has classified yet (triaged_at is empty) | |
| unassigned_only | No | Only messages not yet attached to a lead (default false) |