Read a chat
list_messaging_messagesMessages in one chat of a connected account, newest first (text, is_sender, sent_at, seen, reactions, quoted, message_type, attachments). Paged with cursor: keep passing next_cursor to go back through older history. Each attachment has a kind (image, video, gif, sticker, audio, voice_note, file, shared_post, shared_reel, shared_story, shared_profile, shared_link), size, duration and a short-lived url where the platform gives one; a shared post, reel, story or profile has shared { kind, url, author, caption, thumbnail_url }. On Instagram, message_type story_mention means the person mentioned the account in their story, story_reply that they replied to its story. Messages come from Spaces' own copy where it holds them (source: cache); older history comes from the platform slowly, in small pages, and a 429 means wait retry_after. The answer has account_budget: wait next_check_after_seconds before checking the chat again, and do not poll faster. To learn about new messages, call wait_for_events instead of reading chats again and again. Read-only. Before you reply to a customer, read the business brief with get_business_brief and follow it: its facts, tone, never-promise rules and when to hand over to a person.
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": {
"account_id": "<account_id>",
"chat_id": "<chat_id>"
},
"name": "list_messaging_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| chat_id | Yes | ||
| account_id | Yes |