show_diff
Preview a version-checked local text replacement before writing, showing the diff so you can verify the unique match and avoid unintended edits.
Instructions
Preview a unique, version-checked local text replacement.
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": {
"scope": "<scope>",
"path": "<path>",
"expected_text": "<expected_text>",
"replacement": "<replacement>"
},
"name": "show_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scope | Yes | ||
| replacement | Yes | ||
| expected_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||