discord_list_messages
List messages from a Discord channel or thread newest first, and paginate or center results with before, after, or around message IDs.
Instructions
List messages from a channel or thread, newest first. Provide before, after, or around snowflake IDs to paginate or center the search window. To fetch a specific message by ID use discord_get_message, and to search messages by text or author across an entire server use discord_search_guild_messages. Page older messages with before=next_before. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.
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": "discord_list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Get messages posted after this message snowflake ID (use next_after to page forward in time). Use only one of before, after or around | |
| limit | No | Max number of messages to return (1-100; default is 50) | |
| around | No | Get messages centered around this message snowflake ID. Use only one of before, after or around | |
| before | No | Get messages posted before this message snowflake ID (use next_before to page backward in time). Use only one of before, after or around | |
| channel_id | Yes | ID of the channel or thread to list messages from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | ||
| next_after | Yes | ||
| next_before | Yes |