Diff an original vs. proposed revision and mint a diff receipt
redline_diffAn agent proposes an edit: diffs original text/markdown against its own revised version and returns the line-level hunks plus a diff receipt (original/revised digests, diff-algorithm declaration, per-hunk digests). Byte-identical to what the tools/552 browser workbench computes for the same inputs -- a human can paste the SAME original/revised text into that workbench, disposition each hunk (accept/reject/comment), and their resulting hunk/disposition receipts will reference this diff_receipt's execution_hash. Pass the whole bundle (this diff_receipt + the human's hunk_receipts + disposition_receipt) to redline_verify to check the interleaved chain end-to-end.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"original": "<original>",
"revised": "<revised>"
},
"name": "redline_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revised | Yes | Proposed revised text or markdown document. | |
| original | Yes | Original text or markdown document. | |
| generated_at | No | ISO 8601 timestamp (caller-supplied for determinism). Defaults to the call time. |