openDiff
Compare old and new file contents by providing file paths and new content. Opens a diff view with temporary files for visual comparison.
Instructions
Open a diff view comparing old file content with new file content. Creates temporary files on disk.
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": {
"oldFilePath": "<oldFilePath>",
"newFilePath": "<newFilePath>",
"newFileContents": "<newFileContents>",
"tabName": "<tabName>"
},
"name": "openDiff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabName | Yes | Name for the diff tab | |
| newFilePath | Yes | Path to the new file | |
| oldFilePath | Yes | Path to the old file | |
| newFileContents | Yes | Contents for the new file version |