{"id":"text-diff-stats","version":"1.0.0","description":"Summarize a line-record diff as keep, insert, delete, and hunk counts.","supported_operations":["text diff stats","count line diff insertions and deletions","summarize text line differences"],"unsupported_operations":["character-level stats","fuzzy matching","patience/histogram diff","binary patches","git diff --git headers","filesystem access"],"semantics":["left and right are split with splitRecords. Record equality is text plus eol.","Counts come from the Myers line-record SES: keeps, insertions, and deletions are op-kind totals.","hunks is the integer hunk count from hunksFromSes, not the hunk list. context defaults to 3, may be 0, and is at most 16.","identical is true iff there are no change ops. lines_left and lines_right are record counts.","A single isolated replacement is one hunk for any context 0..16. Far-apart changes may merge when context is large enough.","Unknown input fields are rejected."],"limits":{"max_text_bytes":262144,"max_line_count":4096,"max_line_bytes":16384,"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},"context":{"type":"integer","minimum":0,"maximum":16}}},"output_schema":{"type":"object","additionalProperties":false,"required":["lines_left","lines_right","keeps","insertions","deletions","hunks","identical"],"properties":{"lines_left":{"type":"integer","minimum":0},"lines_right":{"type":"integer","minimum":0},"keeps":{"type":"integer","minimum":0},"insertions":{"type":"integer","minimum":0},"deletions":{"type":"integer","minimum":0},"hunks":{"type":"integer","minimum":0},"identical":{"type":"boolean"}}},"examples":[{"input":{"left":"a\nb\n","right":"a\nc\n"},"output":{"lines_left":2,"lines_right":2,"keeps":1,"insertions":1,"deletions":1,"hunks":1,"identical":false}}],"execute_url":"/v1/tools/text-diff-stats/versions/1.0.0/execute"}