Facebook / Messenger: List recent messages
facebook_list_recent_messagesRead a bounded date-window digest from ONE explicitly selected Facebook personal/Page inbox. Enumerate requested inboxes separately. Preserve complete=false; never call a partial digest exhaustive.
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": {
"inbox_id": "<inbox_id>",
"after": "<after>",
"include_sent": "<include_sent>",
"chat_type": "<chat_type>",
"max_chats": "<max_chats>"
},
"name": "facebook_list_recent_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | ||
| before | No | ||
| inbox_id | Yes | Exact inbox.id from facebook_list_inboxes, including PAGE_<page_id>_INBOX for a selected Page. Not a Page profile_id or connection account_id. | |
| chat_type | Yes | all | |
| max_chats | Yes | ||
| account_id | No | Owned Facebook unipile_account_id from list_connected_accounts. Not a Facebook person or Page ID. Required when several Facebook accounts exist. | |
| include_sent | Yes |