query_documents
Search ingested local documents using hybrid keyword and semantic matching to retrieve relevant chunks with source file and context. Restrict results by file path prefixes for targeted lookups.
Instructions
Search ingested documents with hybrid keyword + semantic matching. Use the returned order as the ranking; score may disagree with it. Each has filePath, chunkIndex, text, fileTitle, score (lower is closer), and source (for ingest_data items).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10, range 1-100). Lower favors precision, higher recall. | |
| query | Yes | Search query. Preserve specific user terms (for keyword match); add context when the query is vague (for semantic match). | |
| 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. |