read_messages
Retrieve recent messages from any Matrix room in reverse chronological order. Specify room ID and optionally adjust message count or pagination token.
Instructions
Read recent messages from a Matrix room. Returns messages in reverse chronological order.
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": {
"room_id": "<room_id>"
},
"name": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | Room ID (e.g. !abc123:matrix.org) | |
| limit | No | Max messages to return (default 20, max 100) | |
| since | No | Pagination token from a previous read_messages call |