read_messages
Retrieve message history from a Discord channel or thread, with options to paginate before, after, or around specific message IDs and set a limit.
Instructions
Read channel or thread history. Use the oldest message ID as before for older pages.
Only one of before, after, around may be supplied. Discord may omit message content when the credential lacks the required access or intent.
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": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| limit | No | ||
| around | No | ||
| before | No | ||
| channel_id | Yes |