dm_messages_list
List messages in a chat, most recent first. Optionally filter by direction or status. Inbound messages created by a tap on an interactive element you sent (quick reply, button postback, Instagram ice breaker, Telegram callback query) carry tapped_action: {kind, payload, title} — read the payload from there instead of digging through platform_data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>"
},
"name": "dm_messages_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (zero-indexed, default 0) | |
| status | No | Filter by status (pending, published, failed_waiting_for_retry, failed, received) | |
| chat_id | Yes | Chat hashid OR external_conversation_id | |
| per_page | No | Items per page (default 20) | |
| direction | No | Filter by direction |