Replace exact text safely in one file
replace_textReplace a specific text substring in a file, verified by SHA-256 hash and exact occurrence count, with automatic backup.
Instructions
Performs a precise text replacement with SHA-256 verification, exact occurrence counting, backup, and no shell or script execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newText | Yes | ||
| oldText | Yes | ||
| project | Yes | Project key from list_projects. | |
| expectedSha256 | Yes | ||
| expectedOccurrences | No |