laserfiche_entry_search_natural
Search Laserfiche entries by asking a natural-language question. Get query guidance or run the query with automatic repair for errors.
Instructions
Two-mode search: get query-authoring guidance, then execute with auto-repair.
Use when you need to author a Laserfiche query and don't know the
server's templates or field names. (For content questions, prefer
search_content; for a query you can already write, search_entries.)
Mode A (lf_query omitted): returns mode="guidance" with the
search grammar, discovered_templates (names + field names sampled
from folder_path or the root), and up to 3 candidate_queries.
Pick or refine one, then call again with lf_query.
Mode B (lf_query given): executes it. On HTTP 400 it retries with
up to two automatic repairs (escape inner quotes; wildcard-wrap bare
Name= values when fuzzy=True), then returns mode="error" with
every attempts entry (query, repair, status, server body) so you can
author a fresh query. Success returns mode="results";
pagination_unknown=true means the server hit the cap without saying
whether more exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuzzy | No | Allow the wildcard-wrap repair on 400 (default). Set False for exact-match queries that must not be relaxed. | |
| lf_query | No | Laserfiche query to execute (Mode B). Omit to get guidance (Mode A): grammar reference, sampled templates, candidate queries to refine. | |
| question | Yes | The user's natural-language search question. | |
| folder_path | No | Backslash-delimited folder path. In Mode A, narrows the template sample to this subtree; in Mode B, the LLM should embed {LF:LookIn="<path>"} in lf_query itself if scoping is wanted. | |
| max_results | No | Page size, clamped to LF_MAX_PAGE_SIZE (default 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||