Claude Desktop Commander MCP

edit_block

Apply surgical text replacements to files. Best for small changes (<20% of file size). Multiple blocks can be used for separate changes. Will verify changes after application. Format: filepath, then <<<<<<< SEARCH, content to find, =======, new content, >>>>>>> REPLACE.

Input Schema

NameRequiredDescriptionDefault
blockContentYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "blockContent": { "type": "string" } }, "required": [ "blockContent" ], "type": "object" }