Edit file
edit_fileReplace exact file content with new text, using dry_run to preview changes as a unified diff.
Instructions
Replace an exact string in a file. dry_run=true previews a unified diff without writing.
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": {
"path": "<path>",
"old": "<old>",
"new": "<new>"
},
"name": "edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes | ||
| dry_run | No | ||
| replace_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||