{"category":"text","endpoint":"https://setget.net/v1/tools/diff","examples":[{"input":{"after":"apple\nblueberry\ncherry\ndate\n","before":"apple\nbanana\ncherry\n"},"output":{"added":2,"equal":false,"hunks":1,"removed":1,"text":"--- before\n+++ after\n@@ -1,3 +1,4 @@\n apple\n-banana\n+blueberry\n cherry\n+date\n"}},{"input":{"after":"same\n","before":"same\n"},"output":{"added":0,"equal":true,"hunks":0,"removed":0,"text":""},"title":"Identical texts"}],"input_schema":{"additionalProperties":false,"properties":{"after":{"description":"The changed text.","examples":["apple\nblueberry\ncherry\ndate\n"],"type":"string"},"before":{"description":"The original text.","examples":["apple\nbanana\ncherry\n"],"type":"string"},"context":{"default":3,"description":"Unchanged lines to show around each change.","maximum":1000,"minimum":0,"type":"integer"}},"required":["before","after"],"type":"object"},"keywords":["diff","compare text","text difference","unified diff","compare files","changes","diff checker","patch"],"related":["patch-apply","json-diff","levenshtein"],"slug":"diff","summary":"Compare two texts line by line and get a unified diff with counts of added and removed lines.","tier":"inline","title":"Text diff","url":"https://setget.net/tools/diff"}
