Text Diff
Computes deterministic line and word diffs with additions, removals, and similarity.
Run tool
Form input
Direct JSON or Markdown
Submit JSON directly or Markdown that can be converted into JSON.
Work steps
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
left | text | Yes | Left |
right | text | Yes | Right |
Outputs
| Name | Type | Description |
|---|---|---|
added | array | Added |
removed | array | Removed |
unchanged | array | Unchanged |
similarity | number | Similarity |
work | array | Work |
Sample request
{
"left": "alpha\nbeta",
"right": "alpha\ngamma"
}