search
Search indexed markdown specs semantically to retrieve relevant chunks. Filter by file, section, or chunk type for precise results.
Instructions
Semantic search over indexed specs in app. Returns relevant markdown chunks ranked by similarity. Optionally filter by file, section heading, or chunk type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Filter results to a specific file (e.g. 'auth-v2.md'). Matches if the filename contains this string, so partial names work. | |
| limit | No | Max results (default 5) | |
| query | Yes | Natural language search query | |
| section | No | Filter to chunks under a specific heading/section. Case-insensitive substring match against all heading levels (h1–h4). Example: 'authentication' matches chunks under '## Authentication Flow'. | |
| min_score | No | Minimum cosine similarity 0-1. Overrides the MIN_SCORE env var (default 0.44). Lower for rough search, higher for precise matches. Scores are model-relative: with the default embedding model, on-topic chunks land around 0.45-0.80 and unrelated ones below 0.45. | |
| chunk_type | No | Filter by chunk type: 'content', 'code', 'table', or 'toc'. Use 'toc' to retrieve a document's structure map. |