laserfiche_entry_search
Run raw Laserfiche search queries to find matching repository entries and return their IDs, names, paths, and optional web links.
Instructions
Run a raw Laserfiche search query and return matching entries.
Use when you can already express the search in Laserfiche syntax. Prefer
search_content when the question is about what documents say (it
returns the matched passages); search_natural when you need the
grammar and available template/field names first; search_by_name for
a simple name pattern.
Syntax: {LF:Name="Onboarding*"} name pattern; {LF:Basic~="phrase"}
content search over document text/OCR, fields, annotations and names
(,option="D" = document text only); {[Template]:[Field]="value"}
field match; {LF:LookIn="\Path"} folder scope; combine clauses with
& / |.
Returns entries (id, name, entry_type, full_path), total_count,
next_link. Each entry also carries web_url — a link into the
Laserfiche web client — when LF_WEB_CLIENT_URL_TEMPLATE (and, for
folders, LF_WEB_CLIENT_FOLDER_URL_TEMPLATE) is configured; omitted
otherwise. Prefer handing the user web_url over reading the document
with get_document_edoc when they just want to open or download it
themselves. On failure returns {"mode": "error", "error": <slug>}
(server_error is common — this endpoint is fragile on some builds;
see docs/error-contract.md).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Laserfiche search expression. Each clause wrapped in braces and combined with `&` (AND) or `|` (OR). Quote string values with double quotes; escape inner quotes with `\"`. | |
| max_results | No | Page size. Defaults to LF_MAX_RESULTS_DEFAULT (25). Capped at LF_MAX_RESULTS_CEILING (typically 200). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||