messages_search
Search Discord messages server-wide by content, author, channel, mentions, attachments, or time range; returns total hits and compact results.
Instructions
Server-wide message search (Discord's search index). has: link, embed, file, image, video, sound, sticker, poll, snapshot. min_id/max_id also take times ("7d"). Returns total hits + compact messages. If the index is still building Discord answers 202; the tool waits and retries once.
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": "messages_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | ||
| has | No | ||
| guild | No | ||
| limit | No | ||
| author | No | ||
| max_id | No | ||
| min_id | No | ||
| offset | No | ||
| pinned | No | ||
| channel | No | ||
| content | No | ||
| mentions | No | ||
| sort_order | No | desc |