compare
Identify differences between two JSON values or paths, including added, removed, type, and value changes across one or two documents.
Instructions
Compare two JSON values and report their differences.
Can compare two paths within the same document or across two documents. Reports added keys, removed keys, type changes, and value changes. Walks as deep as Python allows unless max_depth is set.
Args: alias_a: The alias of the first document. path_a: Path to the first value (default root). alias_b: The alias of the second document (defaults to alias_a). path_b: Path to the second value (default root). max_depth: Stop after this many nested levels. Omit to walk the full safe depth.
Returns: A structured diff report listing all differences found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path_a | No | ||
| path_b | No | ||
| alias_a | Yes | ||
| alias_b | No | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |