精确替换文件内容
edit_fileReplace text in files only when the exact occurrence count matches expectations, preventing unintended modifications.
Instructions
仅在 old_text 出现次数与 expected_occurrences 完全一致时替换,避免误改。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| new_text | Yes | ||
| old_text | Yes | ||
| expected_occurrences | No |