{"id":"sequence-apply-edit-script","version":"1.0.0","description":"Apply a keep/delete/insert edit script to a bounded sequence with exact value matching and no fuzz.","supported_operations":["sequence apply edit script","apply sequence edit script","apply keep delete insert ops to a sequence"],"unsupported_operations":["fuzzy matching","offset search","patience diff","RFC 6902 JSON Patch","locale compare","unicode normalization"],"semantics":["sequence is an array of JSON null, boolean, string, or IEEE-754 safe integer items.","Each op requires op (keep, delete, or insert) and value (a sequence item). Extra keys are rejected.","Optional left_index and right_index, if present, must equal the inferred walk index; omitted indices are inferred.","keep and delete consume sequence from the left with === equality; keep and insert produce the output sequence.","The walk must consume sequence exactly. Length or value mismatch is rejected. There is no fuzz or offset search.","For sequence [\"A\",\"B\"] and ops delete A, keep B, insert A the result is [\"B\",\"A\"].","The string \"__proto__\" is an ordinary item. Unknown input fields are rejected."],"limits":{"max_sequence_items":1024,"max_item_string_bytes":4096,"max_text_bytes":262144,"max_edit_ops":4096,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["sequence","ops"],"properties":{"sequence":{"type":"array","maxItems":1024,"items":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]}},"ops":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["op","value"],"properties":{"op":{"type":"string","enum":["keep","delete","insert"]},"value":{"description":"null, boolean, UTF-8 string, or IEEE-754 safe integer","type":["null","boolean","string","integer"]},"left_index":{"type":"integer","minimum":0},"right_index":{"type":"integer","minimum":0}}}}}},"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"],"ops":[{"op":"delete","value":"A"},{"op":"keep","value":"B"},{"op":"insert","value":"A"}]},"output":{"sequence":["B","A"]}}],"execute_url":"/v1/tools/sequence-apply-edit-script/versions/1.0.0/execute"}