search_messages
Search Discord channel messages by content, author ID, or date range to locate specific conversations, with optional message ID boundaries and result limits.
Instructions
Search for messages in a Discord channel by content, author, or date range
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": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Optional: Search messages after this message ID | |
| limit | No | Number of messages to search through (default: 100, max: 500) | |
| query | No | Text to search for in message content | |
| before | No | Optional: Search messages before this message ID | |
| authorId | No | Optional: Filter by author ID | |
| channelId | Yes | The Discord channel ID to search messages in |