discord_search_threads
Search a channel's threads by name, tags, and time bounds, then page through matched threads with their first messages and members.
Instructions
Search threads in a channel by name, tags, and time bounds. New threads take about 30 seconds to appear in search results. Returns matched threads, first messages, and member objects. Page results with offset=next_offset. To browse active threads without indexing delays, use discord_list_active_guild_threads. Bot permissions it may need: Read Message History. Read-only; safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by up to 20 forum tag IDs applied to threads | |
| name | No | Query string to search thread names for | |
| slop | No | Slop parameter controlling phrase matching fuzziness (0-100) | |
| limit | No | Maximum number of threads to return per page (1-25) | |
| max_id | No | Filter threads created before this snowflake ID | |
| min_id | No | Filter threads created after this snowflake ID | |
| offset | No | Offset index into the search results for pagination; page with next_offset | |
| sort_by | No | Field to sort results by | |
| archived | No | Filter by archive state: true for archived only, false for active only | |
| channel_id | Yes | ID of the parent channel to search threads in | |
| sort_order | No | Sort direction | |
| tag_setting | No | How tag matches combine: 'match_all' requires a thread to have every tag in tag, 'match_some' requires at least one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| members | Yes | ||
| threads | Yes | ||
| has_more | No | ||
| next_after | No | ||
| next_before | No | ||
| next_offset | No | ||
| total_results | No | ||
| first_messages | No |