Skip to main content
Glama

mcp-editor

string_replace

Replace specific text in a file with a new string using absolute file path input. Designed for safe file manipulation in the mcp-editor server environment.

Instructions

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 from mcp-editor

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arathald/mcp-editor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server