host.docs.search
Ranked passage search over this tenant's document store. Lexical (BM25) by default; embeddings mode (set via host.docs.index_config) ranks by cosine and falls back to lexical (index.mode: "lexical-fallback") if the provider call fails. Returns [{document_id, name, version, chunk_no, offset, text, score}] plus an index block naming the mode and how stale the index is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Max results to return, 1-20; default 5. | |
| query | Yes | Search query text. | |
| filter | No | Restrict results to documents matching prefix and/or name. | |
| tenant_key | No | The key `signup` returned. Required only when this connection carries no Authorization: Bearer header -- when both are present, the header wins. |