discord_read_messages
Fetch recent Discord channel or thread messages, newest first, with cursor pagination for older pages and Markdown/JSON output.
Instructions
Read recent messages from a channel or thread, newest first, with cursor pagination.
Needs the Message Content intent enabled for the bot or every message reads as empty.
Pass only one of before / after / around.
Returns: Markdown — each message as author, time, ID, text, attachments, reactions,
oldest at top; a footer gives the `before` cursor for the next page. JSON — envelope
{count, limit, has_more, next_before, items:[{id, channel_id, author{id, username,
display_name, bot}, content, timestamp, edited_timestamp, pinned, attachments?,
embeds?, reactions?, reply_to?, thread_id?}]}.
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_read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only messages newer than this message ID. | |
| limit | No | How many messages, newest first. | |
| around | No | Messages surrounding this message ID. | |
| before | No | Only messages older than this message ID — pass `next_before` from the previous page. | |
| channel_id | Yes | Channel, thread, or DM channel ID. | |
| response_format | No | 'markdown' for reading, 'json' for full structured data. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |