Get Discord Messages
discord_get_messagesRetrieve messages from a Discord channel, specifying channel ID, limit, and optional before/after message IDs. Output in JSON or Markdown format.
Instructions
Retrieve messages from a Discord channel.
Args:
channel_id (string): Discord channel ID
limit (number): Number of messages to retrieve (1-100, default: 20)
before (string, optional): Get messages before this message ID
after (string, optional): Get messages after this message ID
response_format ('markdown' | 'json'): Output format (default: 'json')
Returns: List of messages with content, author, timestamp, attachments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Get messages after this message ID | |
| limit | No | Number of messages to retrieve (1-100) | |
| before | No | Get messages before this message ID | |
| channel_id | Yes | Discord channel ID (snowflake) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | json |