mcp-editor

by arathald
Verified

string_replace

Replace a string in a file with a new string

Input Schema

NameRequiredDescriptionDefault
new_strNoReplacement string (empty string if omitted)
old_strYesString to replace
pathYesAbsolute path to the file

Input Schema (JSON Schema)

{ "properties": { "new_str": { "description": "Replacement string (empty string if omitted)", "type": "string" }, "old_str": { "description": "String to replace", "type": "string" }, "path": { "description": "Absolute path to the file", "type": "string" } }, "required": [ "path", "old_str" ], "type": "object" }

You must be authenticated.

Other Tools