List chat messages
list_chat_messagesList room messages oldest to newest, 50 per page. Replies are included; threadId reads one discussion. beforeMessageId pages back, afterMessageId forward. To wait for new messages, receive the chat.message_created event. With webhooks:read, list_events reads them from the event log.
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": {
"roomId": "<roomId>"
},
"name": "list_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size. Default 50. | |
| roomId | Yes | Chat room ID. | |
| threadId | No | Only messages in this discussion. | |
| afterMessageId | No | Page forward from this message. | |
| beforeSequence | No | Messages below this sequence. | |
| beforeMessageId | No | Page back from this message. | |
| response_format | No | How much to return. concise applies when omitted; detailed adds every field and the full text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | A tip on reading cut text in full or on a faster way to do this. Sent only when one applies. | |
| hasMore | No | true when another page exists. | |
| messages | Yes | This page of results. | |
| nextCursor | No | Pass as cursor for the next page. Null or absent on the last page. | |
| nextAfterMessageId | No | Newest message on this page. Pass it as afterMessageId to page forward. Null on an empty page. | |
| nextBeforeMessageId | No | Oldest message on this page. Pass it as beforeMessageId to page back. Null on an empty page. |