Apply Patch
apply_patchApply a unified diff patch to update multiple files in a workspace. Validates file paths before applying to ensure changes stay within allowed directories.
Instructions
Apply one unified diff patch inside the workspace. Paths are validated before applying. Prefer edit for tiny replacements and apply_patch for multi-file diffs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | Unified diff patch to apply. File paths must stay inside the workspace and avoid blocked paths. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use the workspace selected for this MCP session. |