get_channel_messages
Retrieve recent messages from a Discord text channel with optional limit and pagination using message IDs.
Instructions
Fetch recent messages from a text channel
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": "get_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| limit | No | Number of messages to fetch (1–100, default 50) | |
| before | No | Get messages before this message ID (cursor) | |
| after | No | Get messages after this message ID (cursor) |