preview_replace
Preview an exact-string replacement in a file before applying it to verify the search and replacement text without modifying the file.
Instructions
Preview a unique exact-string replacement without modifying the file.
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>",
"search": "<search>",
"replacement": "<replacement>"
},
"name": "preview_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file | |
| search | Yes | Exact original text | |
| replacement | Yes | Replacement text |