diff_preview
Preview file changes before applying them by showing a diff of modifications that would be made by sed, awk, or perl commands.
Instructions
Preview what changes would be made by showing a diff
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": {
"file": "<file>",
"command": "<command>"
},
"name": "diff_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File to preview changes for | |
| command | Yes | Command that would make changes (e.g., "s/old/new/g") | |
| tool | No | Which tool to use for the preview | perl |