text_diff
Diff two strings by line, word, or character to get structured changes, a unified diff, and a Jaccard similarity score.
Instructions
Diff two strings by line, word or character. Returns structured changes (+/-/=), git-style unified diff, and a Jaccard similarity score. Use line mode for code/config; word mode for prose; char mode for short strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| mode | No | line | |
| context | No |