text_diff
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
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 |
|---|---|---|---|
| context | No | Context lines around each change (default 3) | |
| modified | Yes | Modified text | |
| original | Yes | Original text | |
| modified_file | No | Label for the modified file (default "modified") | |
| original_file | No | Label for the original file (default "original") |