dm_chats_list
List direct-message chats (conversations) for a DM-capable profile, ordered by most recent activity. Supported on Facebook (Messenger), Instagram, Telegram, Bluesky, and WhatsApp. WhatsApp chats carry external_placement_id (the phone number), group (true for group chats) and within_messaging_window.
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": {
"profile_id": "<profile_id>"
},
"name": "dm_chats_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (zero-indexed, default 0) | |
| after | No | ISO 8601 timestamp — only chats with last_message_at after this | |
| before | No | ISO 8601 timestamp — only chats with last_message_at before this | |
| per_page | No | Items per page (default 20) | |
| profile_id | Yes | Profile hashid (Facebook, Instagram, Telegram, Bluesky, or WhatsApp) |