get_channel_messages
Retrieve the newest messages from a channel, group, or direct message. Paginate through history using count and offset parameters.
Instructions
Get messages from a channel, group or DM (newest first).
Args:
room_id: Room ID or room name of the channel/group/DM
count: Number of messages to retrieve (default: 20, max: 100)
offset: Skip this many newest messages — use to page back through history
instead of re-reading with a larger count (e.g. offset=20 to get
the 20 messages older than the first page)
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": "get_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | ||
| count | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |