json-patch-conflict
Conflicts between two to four RFC 6902 JSON Patches made against the same document — Takes one base document and 2 to 4 JSON Patch (RFC 6902) operation lists written against it and reports, per pair, whether they commute: same-path writes, ancestor/descendant overlaps, array-index shifts (an insert or remove moves the elements a later patch addressed by index), concurrent - appends whose final order depends on application order, test operations invalidated by another patch, an
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": {
"document": "<document>",
"patches": "<patches>"
},
"name": "json-patch-conflict"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patches | Yes | ||
| document | Yes | The base document both patches were written against (any JSON value). |