compare_text
Compare two blocks of text line by line. Returns JSON { identical, linesCompared, changeCount, changes[] }, where each change carries a 1-based line number, a change of 'added' | 'removed' | 'modified', and the before/after text. Lines are matched by POSITION, not by content: this is not an LCS diff, so inserting one line near the top reports every following line as modified. There is no character-level or word-level detail, and no unified-diff patch output. Whitespace and case are significant; \r\n and \n line endings are treated the same. Runs locally and costs nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text1 | Yes | The baseline text, reported as `before` in each change. | |
| text2 | Yes | The revised text, reported as `after` in each change. |