laserfiche_entry_compare
Diff two Laserfiche entries' attributes and template fields, listing all mismatches and missing values. Use it to verify duplicate records or confirm imports copied every field.
Instructions
Diff two entries' attributes and (optionally) template field values.
Use this instead of fetching both entries yourself and comparing by eye — it's a deterministic set comparison, not a judgment call, and it tells you exactly which of possibly dozens of fields disagree instead of making you scan two JSON blobs. Typical uses: "are these two copies of the contract actually the same?", "what changed between this record and the template version?", "did the import bring over every field?".
Compares five entry attributes — name, entryType,
templateName, extension, pageCount — plus, when
include_fields is true (the default), every template field value on
either entry. Timestamps and entry IDs are intentionally excluded: two
copies of the same document differing only in creation time is noise,
not a finding.
A field present on one entry's template but absent on the other's is
reported separately (only_left_fields / only_right_fields) from
a field present on both with different values (differences) — "you
forgot to fill this in" and "these disagree" are different problems.
Sibling tools: get_entry / get_field_values to inspect one entry
on its own; get_entry_by_path to resolve a path to the entry ID this
tool needs when you only have a location, not an ID.
Returns {"mode": "entry_comparison", "left_entry_id", "right_entry_id", "identical": bool, "differences": [{"kind": "attribute"|"field", "name", "left", "right"}, ...], "same": [<attribute/field names>], "only_left_fields": [...], "only_right_fields": [...]}. On failure
returns {"mode": "error", "error": <slug>, "entry_id": <int>, "side": "left"|"right"} — not_found (bad ID on either side),
auth_failed. This tool never writes to Laserfiche.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left_entry_id | Yes | Entry ID of the first ('left') entry. | |
| include_fields | No | Also compare template field values, not just entry attributes. Set false to skip the two extra get_field_values round-trips when only name/type/extension/page-count matter. | |
| right_entry_id | Yes | Entry ID of the second ('right') entry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||