diff_object_snapshots
Compare two object snapshots to see which properties and components were added, removed, or changed, with before/after values side by side for verifying replication.
Instructions
Compare two snapshots taken by snapshot_object and report which properties were added, removed or CHANGED, at the object level and per component, with both values side by side. The second half of the before/after measurement: capture a baseline, run the action, capture again, and this tells you what actually moved -- instead of trusting the acting call's own success flag. Also the way to diff editor-vs-PIE and, in co-op, SERVER-vs-CLIENT state for the same actor, which is the only proof that a value really replicated. Sides can be given as stored handles, as inline snapshot objects (from snapshot_object(return_snapshot=true)), or as paths to persisted snapshot files; a_origin/b_origin report which route each side came from. compare_objects is the same idea for two LIVE objects at one instant.
Returns: { handle_a, handle_b, a_origin, b_origin, a_object_path, b_object_path, a_class, b_class, a_world, b_world, properties:{added,removed,changed}, components:{added,removed,changed:[{component, properties:{added,removed,changed}}]}, total_differences }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path_a | No | Path to a persisted baseline snapshot file (bare handles resolve under Saved/MCPAudits/snapshots/). | |
| path_b | No | Path to a persisted second snapshot file. | |
| handle_a | No | Handle of the first (baseline) snapshot (aliases: a, snapshot_a). Resolved from the in-memory store first, then from the persisted Saved/MCPAudits/snapshots/<handle>.json copy. | |
| handle_b | No | Handle of the second snapshot (aliases: b, snapshot_b). Same resolution. | |
| snapshot_a | No | The baseline snapshot INLINE (a JSON object, e.g. what snapshot_object(return_snapshot=true) handed back). A STRING here is read as a handle. | |
| snapshot_b | No | The second snapshot INLINE (a JSON object). A STRING here is read as a handle. |