discord_search_messages
Search Discord channel messages by keyword, author, or attachment presence to locate specific conversations and files quickly.
Instructions
Search messages in a channel with keyword matching, author filters, and attachment checks.
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": {
"channel_id": "<channel_id>"
},
"name": "discord_search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to search through (1-100, default: 50). | |
| query | No | Keyword or phrase to search for. | |
| guild_id | No | Optional guild ID. | |
| author_id | No | Optional user ID to filter by author. | |
| channel_id | Yes | Channel ID or name. | |
| has_attachment | No | Optional filter for messages with attachments. |