read_messages
Retrieve messages from a Discord channel or thread, newest last, and page through history using before/after message IDs.
Instructions
Read messages of a channel or thread (newest last). Use before/after to 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": {
"channel": "<channel>"
},
"name": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| after | No | Message id | |
| limit | No | ||
| before | No | Message id | |
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel or thread name, id, or message link |