GonMCPtool

edit_file

Replace specific text content in files with precision. Input a file path and define text replacements. Optionally preview changes before applying edits to the file.

Instructions

對檔案進行精確的編輯,可以替換特定文字內容

Input Schema

NameRequiredDescriptionDefault
dryRunNo預覽變更而不實際修改檔案
editsYes
pathYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "dryRun": { "default": false, "description": "預覽變更而不實際修改檔案", "type": "boolean" }, "edits": { "items": { "additionalProperties": false, "properties": { "newText": { "description": "替換成的新文字", "type": "string" }, "oldText": { "description": "要搜尋的文字 - 必須完全匹配", "type": "string" } }, "required": [ "oldText", "newText" ], "type": "object" }, "type": "array" }, "path": { "type": "string" } }, "required": [ "path", "edits" ], "type": "object" }
ID: 8xcb3w59pl