Diff two texts
text_diffCompare two texts line-by-line or word-by-word and return a unified-style diff with counts of added/removed/unchanged and a similarity score.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "text_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Original text | |
| b | Yes | New text | |
| mode | No | line (default) or word |