search_messages
Search recent Discord messages across text channels, forum posts, and threads by keyword or author. Filter by channel or server to find relevant conversations quickly.
Instructions
Search recent messages across the server's text channels, forums' active posts and threads (and their titles) for words or an author.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| query | No | Words to find (case-insensitive) | |
| author | No | ||
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. | |
| channels | No | Only these channels | |
| max_results | No | ||
| per_channel | No | How many recent messages to look at per channel |