discord_mod_purge_messages
Purge messages from a Discord channel by filtering based on author, content, or attachments. Scans and bulk-deletes matching messages.
Instructions
Purges messages from a channel with filters (by user, content, attachments). Scans and bulk-deletes matching messages.
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": {
"channelId": "<channelId>"
},
"name": "discord_mod_purge_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Snowflake ID: only delete messages after this | |
| limit | No | Max messages to scan (1-1000, default 100) | |
| before | No | Snowflake ID: only delete messages before this | |
| authorId | No | Only delete messages from this user ID | |
| contains | No | Only delete messages containing this text | |
| channelId | Yes | The ID of the channel to purge from | |
| hasAttachment | No | Only delete messages with attachments |