Dataset Diff & Change Detector
v0.2.0Compare two versions of a JSON row list: what was added, removed or changed, field by field.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_capabilities
Returns the exact matching and comparison rules diff_rows uses, the shape and order of its output rows, and the maximum rows per call. Call this first if you are unsure how values are compared. Free, processes no data.
diff_rows
Compares two versions of the same list of JSON rows (a before and an after snapshot, such as yesterday's and today's price list, product feed or CRM export) and returns one row per difference: status added, removed or changed, the key, the old and new values, and changedFields naming exactly which fields moved. Set keyFields to the field(s) that identify a row (sku, id, email); without it rows match on full content and an edited row shows as removed plus added. Comparison is exact: "19.99" (text) and 19.99 (a number) differ, as do "Blue" and "blue " and null and a missing field; nested objects…
| Parameter | Type | Description |
|---|---|---|
newRows * | array | The after snapshot: a JSON array of row objects, the same kind of rows as oldRows. At least one row. |
oldRows * | array | The before snapshot: a JSON array of row objects. At least one row. Keys may differ between rows. |
compareFields | array | Optional. Only these fields decide whether a matched row changed. Default: every field on either row. |
ignoreFields | array | Optional. Fields never compared, for example ["scrapedAt","lastChecked"], so a timestamp alone does not mark a row changed. |
includeUnchanged | boolean | Optional, default false. Set true to also return matched rows with no difference (status "unchanged"). They are always counted in the summary. |
keyFields | array | Field name(s) that uniquely identify a row on both sides, for example ["sku"] or ["country","sku"]. Strongly recommended: without it a changed row is reported as one removed row plus one added row. |