Edit File
edit_fileReplace exact text in a file, refusing ambiguous matches unless replace_all is enabled. Use dry_run to preview changes before writing.
Instructions
Replace exact text in a file; refuses ambiguous matches unless replace_all is enabled.
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_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| new_text | Yes | ||
| old_text | Yes | ||
| replace_all | No |