discord_get_messages
Retrieve messages from a Discord channel, with options to page through history by specifying before, after, or around a message ID.
Instructions
Read messages from a channel. Use before/after/around (message IDs) to page through history beyond the latest 100.
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": {
"channelId": "<channelId>"
},
"name": "discord_get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Get messages after this message ID (newer) | |
| limit | No | How many messages | |
| around | No | Get messages around this message ID | |
| before | No | Get messages before this message ID (older) | |
| channelId | Yes | Channel ID |