Skip to main content
Edit files via precise text replacement. If oldText is empty, appends to the end of the file.

Dependencies

No extra dependencies, available by default.

Parameters

ParameterTypeRequiredDescription
pathstringYesFile path
oldTextstringYesOriginal text to replace (empty to append)
newTextstringYesReplacement text

Use Cases

  • Modify specific parameters in configuration files
  • Fix bugs in code
  • Insert content at specific positions in files