vscode-mcp-server

create_diff

Modify existing files by generating a diff for user review before applying changes. Ensures controlled updates to project files. Use for edits, not new file creation.

Instructions

Use this instead of writing files directly. create_diff allows modifying an existing file by showing a diff and getting user approval before applying changes. Only use this tool on existing files. If a new file needs to be created, do not use this tool.

Input Schema

NameRequiredDescriptionDefault
descriptionNoDescription of the changes being made
filePathYesPath to the existing file to modify
newContentYesProposed new content for the file
targetProjectPathYesPath to the project folder we are working in

Input Schema (JSON Schema)

{ "properties": { "description": { "description": "Description of the changes being made", "type": "string" }, "filePath": { "description": "Path to the existing file to modify", "type": "string" }, "newContent": { "description": "Proposed new content for the file", "type": "string" }, "targetProjectPath": { "description": "Path to the project folder we are working in", "type": "string" } }, "required": [ "filePath", "newContent", "targetProjectPath" ], "type": "object" }

You must be authenticated.

Other Tools from vscode-mcp-server

Related Tools

ID: ohvq7n4onu