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
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_get_messages"
}
}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 |