Deterministic Diff Receipt
diff_receiptTwo JSON documents in; out come a sha256 of each in canonical form, an RFC 6902 patch between them, and a sha256 of the patch. The same two documents always give the same three hashes, so a diff can be quoted and rechecked. Or send a document and a patch to get the result pinned.
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_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | The second JSON document (to make a patch). | |
| patch | No | Or: an RFC 6902 patch to apply to before (add, remove, replace). | |
| before | No | The first JSON document. | |
| expected_patch_sha256 | No | Optional: a patch hash someone quoted to you, to compare. |