Text diff: unified diff, hunks and similarity of two texts
$0.0021 USD per call Pay per call via x402, no signup
This call compares two texts and returns whether they are identical, a similarity score, counts of added, removed and unchanged lines (or words or characters), plus a unified diff and hunks in line mode or a change list in word and character mode. Limits are 200,000 characters per side (lower in word and character mode); use POST for long text.
x402: GET https://shop.lordevo.com/api/quick/text-diff?before=name:%20shop%0Aprice:%200.003%0Anetwork:%20base%0A&after=name:%20shop%0Aprice:%200.002%0Anetwork:%20base%0A or POST the same fields as JSON to https://shop.lordevo.com/api/quick/text-diff · MCP tool text_diff at https://shop.lordevo.com/mcp
The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.
Example
The catalog's own example for this tool (illustrative sample values, not a live result).
Input
{
"before": "name: shop\nprice: 0.003\nnetwork: base\n",
"after": "name: shop\nprice: 0.002\nnetwork: base\n"
}Output
{
"tool": "text-diff",
"mode": "line",
"unit": "lines",
"identical": false,
"similarity": 0.667,
"stats": {
"added": 1,
"removed": 1,
"unchanged": 2
},
"before_length": 38,
"after_length": 38,
"hunks": [
{
"old_start": 1,
"old_lines": 3,
"new_start": 1,
"new_lines": 3,
"lines": [
" name: shop",
"-price: 0.003",
"+price: 0.002",
" network: base"
]
}
],
"hunks_truncated": false,
"unified": "===...\n--- before\n+++ after\n@@ -1,3 +1,3 @@\n name: shop\n-price: 0.003\n+price: 0.002\n network: base\n",
"unified_truncated": false
}