Read messages
read_messagesFetch the most recent messages from a Discord channel. Requires the Message Content intent to read text bodies.
Instructions
Read the most recent messages from a channel (newest last). Reading the text body requires DISCORD_PRIVILEGED_INTENTS=true plus the Message Content intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent messages to fetch (1-100). | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel to read (name or id). |