apply_patch
Use this tool to apply a patch file to a workspace, with options for dry runs, reverse application, path stripping, and file backups. Integrates with Code MCP Server for VS Code interactions.
Instructions
Apply a patch file to the workspace
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | Create backup files | |
| dryRun | No | Show what would be done without making changes | |
| patchFile | Yes | Path to patch file | |
| reverse | No | Apply patch in reverse | |
| stripPaths | No | Number of path components to strip |