Structural JSON Diff Engine
diff_structural_jsonCompare two JSON payloads or a tracked JSON file against a Git ref to detect semantic key-level and keyed-array changes, including breaking changes.
Instructions
Compute a semantic key-level and keyed-array diff with automatic breaking-change detection for two JSON payloads or a tracked JSON file against HEAD.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diff_structural_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseRef | No | Git ref for the baseline blob (default: HEAD). | |
| newJson | No | Updated JSON text. | |
| oldJson | No | Baseline JSON text. | |
| filePath | No | Label or repository-relative JSON path (e.g. package.json, tsconfig.json, locales/tr.json). | |
| maxNodes | No | Maximum semantic diff nodes to return (default: 200). | |
| repoPath | No | Repository path when diffing a tracked JSON file against baseRef. |