list_channel_messages
Retrieve recent messages from a Discord channel, ordered newest first. Supports pagination with before and after message IDs and adjustable limit up to 100.
Instructions
List recent messages in a channel (newest first in the response).
Requires Read Message History and access to the channel. limit is
1–100. Use before / after message ids for pagination.
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": {
"channel_id": "<channel_id>"
},
"name": "list_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| limit | No | ||
| before | No | ||
| after | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |