get_messages
Retrieve recent messages from any Discord channel by ID. Set a limit and use before_message_id for pagination.
Instructions
Get recent messages from a Discord 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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to fetch (1-100, default: 50) | |
| channel_id | Yes | The Discord channel ID | |
| before_message_id | No | Fetch messages before this message ID (for pagination) |