Read the chat
chat_messagesReads one page of flat chat messages in chronological order, newest first, with reactions and mentions. Use beforeId to page back or find a message id to edit, react, delete, or mark read.
Instructions
Reads one page of the flat chat, newest messages by default, in chronological order. Use it to catch up or to find a message id for chat_edit, chat_react, chat_delete or chat_mark_read; it does not change the read marker (use chat_mark_read) and does not count unread messages (use chat_unread). To page back, send beforeId of the oldest message you have; a malformed id gives before_id_invalid. The result holds messages, their reactions and mentions, and each member's read position; deleted messages show no text.
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": "chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages in the page. Omit for the default page size. | |
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. | |
| beforeId | No | Cursor: id of the oldest message you already have, from a previous chat_messages result; the page then holds the messages sent before it. Omit for the newest page. |