search
Perform full-text search across PDF documents with support for phrases, operators, and automatic query relaxation. Returns results with file, page, and snippet.
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: "13445-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 |
|---|---|---|---|
| query | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |