filesystem-mcp

by sylphlab
Verified

replace_content

Search and replace text or regex patterns in files across specified paths. Perform multiple operations at once, with options to ignore case or use regex.

Instructions

Replace content within files across multiple specified paths.

Input Schema

NameRequiredDescriptionDefault
operationsYesAn array of search/replace operations to apply to each file.
pathsYesAn array of relative file paths to perform replacements on.

Input Schema (JSON Schema)

{ "properties": { "operations": { "description": "An array of search/replace operations to apply to each file.", "items": { "properties": { "ignore_case": { "default": false, "description": "Ignore case during search.", "type": "boolean" }, "replace": { "description": "Text to replace matches with.", "type": "string" }, "search": { "description": "Text or regex pattern to search for.", "type": "string" }, "use_regex": { "default": false, "description": "Treat search as regex.", "type": "boolean" } }, "required": [ "search", "replace" ], "type": "object" }, "type": "array" }, "paths": { "description": "An array of relative file paths to perform replacements on.", "items": { "type": "string" }, "type": "array" } }, "required": [ "paths", "operations" ], "type": "object" }

You must be authenticated.

Other Tools from filesystem-mcp

Related Tools

ID: ysjzadzog3