{"id":"text-word-diff","version":"1.0.0","description":"Diff two texts as whitespace versus non-whitespace word tokens.","supported_operations":["text word diff","word token text diff","diff texts by words"],"unsupported_operations":["locale word break","Unicode UAX #29 word boundaries","unicode normalization","fuzzy matching","patience/histogram diff","treat U+00A0 as whitespace","filesystem access"],"semantics":["left and right are tokenized with splitWords: maximal runs of ASCII space, tab, CR, or LF versus maximal runs of everything else.","U+00A0 is a word character, not whitespace. Empty text yields no tokens.","The Myers SES uses string === equality; when D-paths tie, the library prefers delete from the left.","ops is the per-token SES. keep includes left_index and right_index; delete includes left_index; insert includes right_index.","keeps, deletions, and insertions count those op kinds. Adjacent keeps are not collapsed.","Unknown input fields are rejected. Prototype-like tokens such as \"__proto__\" are ordinary strings."],"limits":{"max_text_bytes":262144,"max_token_count":8192,"max_edit_ops":4096,"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}}},"output_schema":{"type":"object","additionalProperties":false,"required":["ops","keeps","deletions","insertions"],"properties":{"ops":{"type":"array","maxItems":4096,"items":{"type":"object","additionalProperties":false,"required":["op","value"],"properties":{"op":{"type":"string","enum":["keep","delete","insert"]},"value":{"type":"string"},"left_index":{"type":"integer","minimum":0},"right_index":{"type":"integer","minimum":0}}}},"keeps":{"type":"integer","minimum":0},"deletions":{"type":"integer","minimum":0},"insertions":{"type":"integer","minimum":0}}},"examples":[{"input":{"left":"ab cd","right":"ab xy"},"output":{"ops":[{"op":"keep","value":"ab","left_index":0,"right_index":0},{"op":"keep","value":" ","left_index":1,"right_index":1},{"op":"delete","value":"cd","left_index":2},{"op":"insert","value":"xy","right_index":2}],"keeps":2,"deletions":1,"insertions":1}}],"execute_url":"/v1/tools/text-word-diff/versions/1.0.0/execute"}