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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library_id": "<library_id>",
"snapshot_id": "<snapshot_id>",
"document_id": "<document_id>",
"query": "<query>"
},
"name": "find_in_document"
}
}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 |