edit_file
Replace a unique file snippet safely—preview the diff without confirm, then confirm to apply; it backs up first.
Instructions
Replace one unique snippet of a file. Without confirm=true it only returns the diff. Backs up first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |