search_by_name
Search Laserfiche entries by name pattern with optional wildcards and folder scope. Returns matching files and folders.
Instructions
Find entries by file/folder name pattern, optionally scoped to a folder path.
Use when the user is searching by name and the full Laserfiche query
syntax is overkill. This wraps search_entries with a
{LF:Name="..."} (plus optional {LF:LookIn="..."}) clause built
for you.
Args:
name_pattern: A name with optional wildcards — * matches any
sequence, ? matches one character. Examples:
"Onboarding*" (starts-with), "*.pdf" (ends-with),
"Smith,?" (exactly one char after the comma).
in_folder_path: Backslash-delimited Laserfiche path to scope the
search to. Example: "\Imports\2024".
max_results: Page size (default 25, capped by LF_MAX_RESULTS_CEILING).
Returns: same SearchResults shape as search_entries.
On failure: returns {"mode": "error", "error": <slug>, ...}. See
docs/error-contract.md. Note that SimpleSearches is the same fragile
endpoint behind search_entries — fall back to search_natural
if you get repeated server_error results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_pattern | Yes | Name with optional wildcards. `*` matches any sequence (including empty); `?` matches exactly one character. Case-insensitive. No wildcards = exact match. | |
| in_folder_path | No | Optional backslash-delimited folder path to scope the search. Forward slashes are also accepted. | |
| max_results | No | Page size (default 25, capped by LF_MAX_RESULTS_CEILING). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||