Text Diff
text_diffUse this when you need to see exactly which lines changed between two versions of a text. Example prompt: "What changed between these two versions of the contract clause?" Compute an exact line-based diff between two texts with add/remove/unchanged stats. Costs 1 credit. The answer is deterministic.
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": {
"original": "<original>",
"modified": "<modified>"
},
"name": "text_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modified | Yes | The text after the change | |
| original | Yes | The text before the change |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| stats | No | ||
| result | No | The result, when it is not an object |