search_messages
Search Discord channel messages by keyword and optional author, case-sensitivity, or result limit to locate specific conversations.
Instructions
Search messages in a Discord channel with keywords 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": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to search through (max 100) | |
| query | Yes | Search query/keyword to look for | |
| authorId | No | Optional: Filter by specific author ID | |
| channelId | Yes | Discord channel ID | |
| caseSensitive | No | Whether search should be case sensitive | |
| discordBotToken | No | Discord bot token for authentication (optional if DISCORD_BOT_TOKEN env var is set) |