discord_search_messages
Search Discord channel messages using text queries and filters like author, date range, or attachment types to find specific conversations.
Instructions
Search for messages in a Discord channel with text query and filters
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>",
"query": "<query>"
},
"name": "discord_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channelId | Yes | The Discord channel ID | |
| query | Yes | Text to search for in messages | |
| limit | No | Number of results to return (1-25, default: 25) | |
| authorId | No | Filter by author user ID | |
| hasAttachments | No | Filter messages that have attachments | |
| hasImages | No | Filter messages that have images | |
| hasFiles | No | Filter messages that have files | |
| before | No | Search messages before this date (ISO format) | |
| after | No | Search messages after this date (ISO format) |