{"id":"sequence-apply-hunks","version":"1.0.0","description":"Apply disjoint original-address sequence hunks with exact context and no fuzz.","supported_operations":["sequence apply hunks","apply sequence diff hunks","apply exact sequence hunks"],"unsupported_operations":["fuzzy matching","offset search","chained coordinate rewriting","patience diff","RFC 6902 JSON Patch"],"semantics":["sequence is an array of JSON null, boolean, string, or IEEE-754 safe integer items.","hunks use original addressing against that sequence. They must be sorted by old_start.","Old ranges [old_start, old_start+old_count) must not overlap. Two empty ranges at the same index overlap and are rejected.","keep+delete ops must equal old_count; keep+insert ops must equal new_count. Extra hunk keys are rejected.","The old side must equal the original slice; there is no fuzz or offset search.","Every hunk op.value must be a sequence item. Line records and other objects are rejected.","The resulting sequence must not exceed 1024 items.","Applying the context-0 hunk that replaces B with X in [\"A\",\"B\",\"C\"] yields [\"A\",\"X\",\"C\"].","The string \"__proto__\" is an ordinary item. Unknown input fields are rejected."],"limits":{"max_sequence_items":1024,"max_item_string_bytes":4096,"max_hunks":1024,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["sequence","hunks"],"properties":{"sequence":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}},"hunks":{"type":"array","maxItems":1024}}},"output_schema":{"type":"object","additionalProperties":false,"required":["sequence"],"properties":{"sequence":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}}}},"examples":[{"input":{"sequence":["A","B","C"],"hunks":[{"old_start":1,"old_count":1,"new_start":1,"new_count":1,"ops":[{"op":"delete","value":"B"},{"op":"insert","value":"X"}]}]},"output":{"sequence":["A","X","C"]}}],"execute_url":"/v1/tools/sequence-apply-hunks/versions/1.0.0/execute"}