Text Diff API - line-by-line differences between two texts
text_diffCompare two texts and get added, removed and changed lines with counts. Runs on our server, files are deleted right after the call, nothing stored. Free: 25 calls/day per IP. Paid: $0.001 per call via x402 at https://radarbg.com/x402/text-diff.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"textA": "a\nb\nc",
"textB": "a\nB\nc\nd"
},
"name": "text_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| textA | Yes | Original text | |
| textB | Yes | Changed text | |
| ignoreCase | No | Ignore capital letters | |
| ignoreTrailingSpaces | No | Ignore spaces at line ends |