get_messages
Retrieve recent messages from a Discord channel by providing its channel ID. Optionally set a limit or specify before/after message IDs to narrow the results.
Instructions
Retrieve recent messages from a channel
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": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Fetch messages after this message ID | |
| limit | No | Number of messages (1–100, default 20) | |
| before | No | Fetch messages before this message ID | |
| channel_id | Yes | Channel ID |