search
Search PDF documents for specific terms, phrases, or combinations using full-text query syntax. Automatically relaxes queries when no results match, helping you find relevant pages.
Instructions
Search indexed PDFs using FTS5 full-text search.
Supports FTS5 syntax: phrases ("exact phrase"), AND (implicit), OR, NOT, prefix (term*), NEAR(term1 term2, 10), parentheses.
Terms with special characters (dots, hyphens, colons, slashes, ...) are auto-quoted — FTS5 treats them as token separators. You can also quote them yourself: "4200-3", "v2.1".
German ß↔ss / ä↔ae / ö↔oe / ü↔ue variants are expanded automatically.
When no results match all terms (implicit AND), the query is automatically relaxed: first by dropping the term least represented in the corpus, then by OR-ing all terms. A note at the top explains what was searched. Structured queries (explicit operators, NEAR, parentheses) are never relaxed.
Args: query: Search query string. limit: Maximum number of results (default 10, range 1-50).
Returns: Formatted search results with file, subfolder, page, and snippet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |