get_messages
Fetch message history from a Discord channel by channel ID, with an optional limit to control how many messages are returned.
Instructions
Get message history 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": {
"channelId": "<channelId>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to fetch (default: 10, max: 100) | |
| channelId | Yes | Discord channel ID to fetch messages from | |
| discordBotToken | No | Discord bot token for authentication (optional if DISCORD_BOT_TOKEN env var is set) |