{"id":"text-unified-diff","version":"1.0.0","description":"Emit a one-file unified diff of two texts with comma counts and LF document breaks.","supported_operations":["text unified diff","emit unified diff","unified format text diff"],"unsupported_operations":["preserve original CR/LF through unified text","git diff --git headers","index/binary markers","multi-file patches","binary patches","fuzzy matching","filesystem access"],"semantics":["left and right are split with splitRecords; hunks use formatUnified with Myers SES and recordEqual.","from_name and to_name default to a and b. Names must be non-empty, at most 1024 UTF-8 bytes, and must not contain NUL, CR, LF, or tab.","context defaults to 3, may be 0, and is at most 16.","The patch document always uses LF after every line, including headers and the final line.","Hunk headers always include both counts with a comma, including count 1. Nonzero counts use 1-based starts; a zero count uses the GNU insertion index (0 at file start, otherwise the 1-based line before the empty range).","Body prefixes are space (keep), minus (delete), and plus (insert). A following \"\\ No newline at end of file\" line marks eol \"\".","Identical texts yield unified \"\" and identical true, with no headers.","Source CRLF is not encoded in the patch body; applying the emitted patch yields LF records except for the missing-final-newline marker.","Unknown input fields are rejected."],"limits":{"max_text_bytes":262144,"max_line_count":4096,"max_line_bytes":16384,"max_path_bytes":1024,"max_context":16,"max_hunks":1024,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["left","right"],"properties":{"left":{"type":"string","maxLength":262144},"right":{"type":"string","maxLength":262144},"from_name":{"type":"string","minLength":1,"maxLength":1024},"to_name":{"type":"string","minLength":1,"maxLength":1024},"context":{"type":"integer","minimum":0,"maximum":16}}},"output_schema":{"type":"object","additionalProperties":false,"required":["unified","identical"],"properties":{"unified":{"type":"string","maxLength":1048576},"identical":{"type":"boolean"}}},"examples":[{"input":{"left":"a\n","right":"b\n"},"output":{"unified":"--- a\n+++ b\n@@ -1,1 +1,1 @@\n-a\n+b\n","identical":false}}],"execute_url":"/v1/tools/text-unified-diff/versions/1.0.0/execute"}