search_threads
Search Ed Discussion threads by keywords. Returns compact summaries; filter by type or exclude pinned threads.
Instructions
FALLBACK keyword search via the Ed API. PREFER search_index — it's faster, BM25-ranked, supports phrase/prefix/boolean/column queries, and auto-syncs the local index. Only use search_threads when the local index is unavailable or sync fails. Returns compact summaries. Use get_thread to read full content of a result.
Args: course_id: The course ID (use list_courses to find it). query: Search keywords (e.g. "peer review", "exam", "deadline"). limit: Max results (default 20). type: Filter by thread type — "question", "post", or "announcement". Omit for all types. exclude_pinned: If true, exclude pinned threads from results (useful to skip announcements). Default false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | ||
| query | Yes | ||
| course_id | Yes | ||
| exclude_pinned | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |