{"id":"sequence-invert-hunks","version":"1.0.0","description":"Invert sequence hunks by swapping delete/insert and old/new counts.","supported_operations":["sequence invert hunks","invert sequence diff hunks","reverse sequence hunks"],"unsupported_operations":["fuzzy matching","offset search","unified text invert","RFC 6902 JSON Patch"],"semantics":["Input hunks have keys old_start, old_count, new_start, new_count, and ops. Extra keys are rejected.","Inversion swaps delete with insert and old_* with new_*. keep ops stay keep.","Every hunk op.value must be a sequence item. Line records and other objects are rejected.","Op values are copied. Empty hunks invert to empty hunks.","The context-0 hunk that deletes B and inserts X inverts to delete X and insert B with swapped starts.","Unknown input fields are rejected."],"limits":{"max_hunks":1024,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["hunks"],"properties":{"hunks":{"type":"array","maxItems":1024}}},"output_schema":{"type":"object","additionalProperties":false,"required":["hunks"],"properties":{"hunks":{"type":"array","maxItems":1024}}},"examples":[{"input":{"hunks":[{"old_start":1,"old_count":1,"new_start":1,"new_count":1,"ops":[{"op":"delete","value":"B"},{"op":"insert","value":"X"}]}]},"output":{"hunks":[{"old_start":1,"old_count":1,"new_start":1,"new_count":1,"ops":[{"op":"insert","value":"B"},{"op":"delete","value":"X"}]}]}}],"execute_url":"/v1/tools/sequence-invert-hunks/versions/1.0.0/execute"}