Compare two JSON values or two texts without AI
structuredDiffCompare two JSON values or two texts without AI. Use this to see exactly what changed between two supplied versions. format json (default): returns added, removed, and changed paths as JSON Pointers; objects compare by key (order ignored), arrays by index (no move detection), and a different type counts as a change. format text: returns line hunks with one-based line numbers, comparing exactly including whitespace and case. Returns canonical SHA-256 hashes (json) or text hashes. Up to 500 changes are returned; counts cover all. Limits: 64 KiB body, 2000 lines per text, 64 nesting levels. Nothing is fetched or retained. A difference is not a judgment of meaning. Same as POST https://bozos.si/api/v1/diff.
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": {
"before": "<before>",
"after": "<after>"
},
"name": "structuredDiff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The later version, of the same kind. | |
| before | Yes | The earlier version: any JSON value, or a string when format is text. | |
| format | No | json compares structure; text compares lines. | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hunks | No | format text only. | |
| format | Yes | ||
| hashes | Yes | ||
| safety | Yes | ||
| changes | No | format json only. | |
| summary | Yes | json: changes, added, removed, changed. text: hunks, lines_removed, lines_added, before_lines, after_lines. | |
| identical | Yes | ||
| interpretation | Yes | ||
| schema_version | Yes | ||
| hunks_truncated | No | ||
| changes_truncated | No |