compute_diff
Compare two text strings and produce a unified diff with move detection, context lines, and a summary using VS Code's advanced algorithm.
Instructions
Computes a highly accurate diff with move detection using the VS Code advanced diff algorithm. Returns a human-readable unified diff string with context lines, move annotations, and a summary.
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": {
"originalText": "<originalText>",
"modifiedText": "<modifiedText>"
},
"name": "compute_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modifiedText | Yes | The modified complete text. | |
| originalText | Yes | The original complete text. | |
| ignoreTrimWhitespace | No | If true, leading/trailing whitespace differences on each line are ignored. Defaults to false. |