find_in_document
Searches a single document using SQLite FTS5/BM25 full-text search, returning ranked excerpts. Requires library, snapshot, and document IDs to locate the document.
Instructions
Search inside one document using the same local SQLite FTS5/BM25 expression and deterministic tie order as search_documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A complete search question; no path or URI. | |
| top_k | No | ||
| library_id | Yes | A stable library_id returned by retrieval_status. | |
| document_id | Yes | A document_id from the selected snapshot. | |
| snapshot_id | Yes | A snapshot_id returned for the explicit library_id. | |
| excerpt_chars | No |