Read messages
read_messagesRetrieve recent Discord messages from channels, threads, forum posts, or DMs—including authors, replies, attachments, embeds, and reactions—and page by message ID/date or list pinned messages.
Instructions
Reads recent messages from a channel, thread, forum post or DM, shown oldest first with IDs, authors, replies, attachments (names and IDs; get_message gives URLs), embeds and reactions. Page with before/after/around (message ID or ISO date). pinned: true lists pinned messages instead. To find messages by text or author, use search_messages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Instead of channel: a user (ID, <@mention> or name) whose DM channel to use. | |
| after | No | Only messages after this message ID or ISO date. | |
| guild | No | Server ID or name. Optional if DISCORD_GUILD_ID is set or the bot is in one server. | |
| limit | No | How many messages (1-100, default 25). | |
| around | No | Messages around this message ID. | |
| before | No | Only messages before this message ID or ISO date. | |
| pinned | No | List pinned messages instead of history. | |
| channel | No | Channel or thread: ID, <#mention>, link, or name. Archived threads by ID or link. |