Diff two texts
diff_textsCompare two text versions and get a unified diff with added/removed line counts and similarity percentage.
Instructions
Compare two versions of a text and return a unified diff plus exact counts of lines added and removed and a similarity percentage. Use it rather than reading both versions and describing the difference.
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": {
"before": "<before>",
"after": "<after>"
},
"name": "diff_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The changed text. | |
| before | Yes | The original text. | |
| context | No | Context lines around each change. |