Diff two texts
diff_textsCompare two versions of a text line by line to review edits between drafts and revisions, returning a unified diff or a note when identical.
Instructions
Return a unified diff between two versions of a text, line by line, so edits between a draft and a revision can be reviewed precisely. Returns a note when the two inputs are identical.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The revised text. | |
| before | Yes | The original text. | |
| context_lines | No | Unchanged lines of context around each change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |