matrix_get_messages
Retrieve message history from a specific Matrix room to view conversation content, with pagination support for accessing older or newer messages.
Instructions
Retrieve messages from a specific Matrix room.
Use matrix_list_rooms first to get available room IDs.
Args:
room_id: The room ID to fetch messages from
limit: Maximum messages to return (1-100, default 50)
from: Pagination token for fetching more messages
direction: 'b' for older messages, 'f' for newer
Returns:
List of messages with sender, timestamp, and content
Pagination tokens for fetching more messages
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | The Matrix room ID (e.g., !abc123:matrix.org) | |
| limit | No | Maximum number of messages to return | |
| from | No | Pagination token from a previous request (use 'end' value) | |
| direction | No | Direction to paginate: 'b' for backwards (older), 'f' for forwards (newer) | b |