find_messages
Search a Discord channel or thread for literal text case-insensitively, newest first, with optional date bounds and pagination. Returns bounded excerpts for reviewing matching messages.
Instructions
Search literal text, case-insensitively, newest first in one channel/thread. since is inclusive and until exclusive (ISO 8601 with timezone). Continue with next_before_id as before_id and the same filters. chars bounds each excerpt.
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>",
"query": "<query>"
},
"name": "find_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chars | No | ||
| limit | No | ||
| query | Yes | ||
| since | No | ||
| until | No | ||
| before_id | No | ||
| channel_id | Yes | ||
| scan_limit | No |