Search Discord messages
search_messagesSearch indexed Discord message history in one permitted guild using filters to locate specific messages, with exact channel scope and indexing-state reporting.
Instructions
Search indexed Discord message history in one permitted guild using the official bot search endpoint. Requires Message Content intent and Read Message History. Every request has at least one substantive filter, returns at most 25 compact messages, honors exact local channel search scope, and reports Discord indexing state without automatic retries.
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": {
"guildId": "<guildId>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| has | No | ||
| slop | No | ||
| limit | No | ||
| maxId | No | ||
| minId | No | ||
| offset | No | ||
| pinned | No | ||
| sortBy | No | timestamp | |
| content | No | ||
| guildId | Yes | ||
| authorIds | No | ||
| sortOrder | No | ||
| channelIds | No | ||
| embedTypes | No | ||
| authorTypes | No | ||
| includeNsfw | No | ||
| linkHostnames | No | ||
| embedProviders | No | ||
| mentionRoleIds | No | ||
| mentionUserIds | No | ||
| mentionEveryone | No | ||
| repliedToUserIds | No | ||
| attachmentFilenames | No | ||
| repliedToMessageIds | No | ||
| attachmentExtensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| schemaVersion | Yes |