diff_diff_stats
Compare two texts by computing similarity score, added/removed characters and lines, and line similarity to quantify differences.
Instructions
[diff] Compute similarity and change statistics between two texts. Returns {similarity: float (0-1), added_chars: int, removed_chars: int, added_lines: int, removed_lines: int, line_similarity: float}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text_a": "<text_a>",
"text_b": "<text_b>"
},
"name": "diff_diff_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | ||
| text_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |