discord_search_messages
Search for specific messages in a Discord channel using text queries and filters like author, attachments, or date range, returning up to 25 results.
Instructions
Search for messages in a Discord channel with text query and filters
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Search messages after this date (ISO format) | |
| authorId | No | Filter by author user ID | |
| before | No | Search messages before this date (ISO format) | |
| channelId | Yes | The Discord channel ID | |
| hasAttachments | No | Filter messages that have attachments | |
| hasFiles | No | Filter messages that have files | |
| hasImages | No | Filter messages that have images | |
| limit | No | Number of results to return (1-25, default: 25) | |
| query | Yes | Text to search for in messages |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"after": {
"description": "Search messages after this date (ISO format)",
"type": "string"
},
"authorId": {
"description": "Filter by author user ID",
"type": "string"
},
"before": {
"description": "Search messages before this date (ISO format)",
"type": "string"
},
"channelId": {
"description": "The Discord channel ID",
"type": "string"
},
"hasAttachments": {
"description": "Filter messages that have attachments",
"type": "boolean"
},
"hasFiles": {
"description": "Filter messages that have files",
"type": "boolean"
},
"hasImages": {
"description": "Filter messages that have images",
"type": "boolean"
},
"limit": {
"description": "Number of results to return (1-25, default: 25)",
"maximum": 25,
"minimum": 1,
"type": "number"
},
"query": {
"description": "Text to search for in messages",
"type": "string"
}
},
"required": [
"channelId",
"query"
],
"type": "object"
}