edit_file
Surgically edit files by finding and replacing exact text for revenue tracking and business management operations. Automatically creates backups and ensures precise text matching.
Instructions
Surgically edit a file by finding and replacing exact text. 50% more efficient than read+write. Use after read_file to ensure exact match. Errors if text not found or appears multiple times. Creates backup automatically.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
find | Yes | Exact text to find (must match exactly including whitespace) | |
path | Yes | Full file path | |
replace_with | Yes | Text to replace it with |
Input Schema (JSON Schema)
{
"properties": {
"find": {
"description": "Exact text to find (must match exactly including whitespace)",
"type": "string"
},
"path": {
"description": "Full file path",
"type": "string"
},
"replace_with": {
"description": "Text to replace it with",
"type": "string"
}
},
"required": [
"path",
"find",
"replace_with"
],
"type": "object"
}