Claude Desktop Commander MCP

by wonderwhy-er
Verified

write_file

Replace entire file contents for large updates or when incremental edits fail. Ensures precise file modifications within permitted directories, overwriting existing content as needed.

Instructions

Completely replace file contents. Best for large changes (>20% of file) or when edit_block fails. Use with caution as it will overwrite existing files. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
contentYes
pathYes

Input Schema (JSON Schema)

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