search_messages
Find messages in a Discord server by matching text, with optional channel filtering and result limit.
Instructions
Search for messages containing specific text in a server's channels
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": {
"server_id": "<server_id>",
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1-100, default: 25) | |
| query | Yes | Text to search for in messages | |
| server_id | Yes | The Discord server (guild) ID to search in | |
| channel_id | No | Optional: limit search to a specific channel |