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?}]}.
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 |