search_passages
Search documents full-text and return bounded text passages around each hit, so you can locate and skim evidence across many documents without flooding context.
Instructions
Search documents full-text and return bounded text passages around each hit instead of whole documents. Locates the query terms in each matching document's stored content, cuts a window (default 800 chars) around the first occurrence, and returns it with the document id, title, score, offset, content_length, and the server's own highlighted snippet. Use this to locate and skim evidence across many documents without flooding context; page further with get_document_content offsets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| query | Yes | Full-text query (same syntax as query_documents). | |
| window | No | Characters per passage (default 800). | |
| ordering | No | ||
| page_size | No | ||
| max_passages | No | Maximum passages to return (default 5). | |
| storage_path | No | ||
| correspondent | No | ||
| document_type | No | ||
| paperless_filters | No | ||
| created__date__gte | No | ||
| created__date__lte | No | ||
| custom_fields__icontains | No |