list_template_definitions
List all template definitions in a Laserfiche repository to discover available templates before assigning them. Supports filtering by name, pagination, and a summary-only mode for quick lookups.
Instructions
List template definitions in the repository.
Use to discover which templates exist before calling assign_template.
Pass template_name to fetch a single template by name (the same
listing, filtered server-side).
Args:
template_name: If set, return only the template with this exact
name. Case-sensitive on most builds.
max_results: Page size (default 25, capped by LF_MAX_RESULTS_CEILING).
skip: 0-indexed offset for pagination.
summary_only: If True, return only {count, names}.
Returns: Server's raw OData listing with value. Each item has
id, name, displayName, description, fieldCount,
and color. This response does NOT enumerate the fields ON the
template — use list_field_definitions to inspect those (they're
the ones with isRequired=true when scoped to the template).
On failure: returns {"mode": "error", "error": <slug>, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_name | No | If set, return only the template with this exact name. Case-sensitive on most builds. | |
| max_results | No | Page size (default 25, capped by LF_MAX_RESULTS_CEILING). | |
| skip | No | 0-indexed offset for pagination through large repositories. | |
| summary_only | No | When True, return only {count, names} instead of the full OData listing — useful for 'what's available?' lookups that would otherwise return 30-50 KB of definition payload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||