Read messages
read_messagesFetch the most recent messages from a Discord channel. Requires the Message Content intent to read text bodies.
Instructions
Read the most recent messages from a channel (newest last). Reading the text body requires DISCORD_PRIVILEGED_INTENTS=true plus the Message Content intent.
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 |
|---|---|---|---|
| limit | No | How many recent messages to fetch (1-100). | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel to read (name or id). |