diff_lossless_rfc6902_patch
Computes a lossless RFC 6902 JSON Patch between two JSON snapshots, detecting 1-ULP 64-bit and high-precision decimal changes that JSON.parse silently misses.
Instructions
Computes a lossless RFC 6902 JSON Patch (add, remove, replace) between two JSON snapshots, catching 1-ULP 64-bit Snowflake and high-precision decimal mutations that JSON.parse() silently misses.
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_lossless_rfc6902_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leftPath | No | Optional local file path to the baseline ("before") JSON snapshot when leftContent is omitted. | |
| rightPath | No | Optional local file path to the target ("after") JSON snapshot when rightContent is omitted. | |
| leftContent | No | Baseline ("before") raw JSON document compared with exact arbitrary-precision numeric fidelity. | |
| rightContent | No | Target ("after") raw JSON document compared against the baseline snapshot for RFC 6902 patch generation. | |
| expandUnescaped | No | When true, recursively un-escapes nested stringified JSON fields on both sides before computing deep structural RFC 6902 diffs. |