text diff
text_diffCompare two texts: a line diff (unified format) or word diff (inline [-removed-] {+added+}), counts of added and removed parts and a similarity score. For contract redlines, document versions and code. Costs $0.002 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Old text | |
| b | Yes | New text | |
| unit | No | line (default) or word |