discourse_filter_topics
Filter and sort Discourse forum topics using a structured query language based on categories, tags, status, dates, numeric values, and free text. Results are permission-aware and support pagination.
Instructions
Filter topics with a concise query language: use key:value tokens separated by spaces; category/categories for categories (comma = OR, '=category' = without subcats, '-' prefix = exclude), tag/tags (comma = OR, '+' = AND) and tag_group; status:(open|closed|archived|listed|unlisted|public) and personal in:(bookmarked|watching|tracking|muted|pinned); dates: created/activity/latest-post-(before|after) with YYYY-MM-DD or N (days); numeric: likes[-op]-(min|max), posts-(min|max), posters-(min|max), views-(min|max); order: activity|created|latest-post|likes|likes-op|posters|title|views|category with optional -asc; free text terms are matched full-text. Results are permission-aware.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | Yes | Filter query, e.g. 'category:support status:open created-after:30 order:activity' | |
page | No | Page number (1-based) | |
per_page | No | Items per page (max 50) |