query_documents
Find information in your local documents by combining keyword and semantic search. Results are ranked by relevance and include file paths and text excerpts.
Instructions
Search ingested documents with hybrid keyword + semantic matching. Returns results sorted by relevance, each with filePath, chunkIndex, text, fileTitle, score (0 = best, higher = worse), and source (for ingest_data items).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query. Preserve specific user terms (for keyword match); add context when the query is vague (for semantic match). | |
| limit | No | Max results (default 10, range 1-20). Lower favors precision, higher recall. | |
| scope | No | Optional absolute path prefix(es) — one string or a list (unioned) — restricting results to a filePath equal to or under a prefix. "/docs/api" matches "/docs/api/auth.md" but not "/docs/apiv2". Must be absolute (server OS style); a relative prefix matches nothing — derive one from a filePath returned by an earlier query, or omit scope. |