list_messages
Fetch recent messages from a Discord channel or thread by channel ID, with optional limit and message ID filters.
Instructions
Fetches recent messages from a Discord channel or thread.
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_id": "<channel_id>"
},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Get messages after this message ID. | |
| limit | No | Number of messages to retrieve (1-100). Default is 50. | |
| around | No | Get messages around this message ID. | |
| before | No | Get messages before this message ID. | |
| channel_id | Yes | The ID of the channel. |