Read messages
read_messagesFetch recent messages from a Discord channel or DM. Use the 'before' parameter to retrieve older messages by specifying a message ID.
Instructions
Read recent messages from a channel or DM. Optionally pass before (a message ID) to page further back in history.
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": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to fetch (1-100) | |
| before | No | Only fetch messages before this message ID | |
| channelId | Yes | The channel ID to read from |