Skip to main content
Glama

apply_patch

Apply patch files to modify workspace code, supporting dry runs, reverse application, path stripping, and backup creation for controlled code changes.

Instructions

Apply a patch file to the workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patchFileYesPath to patch file
dryRunNoShow what would be done without making changes
reverseNoApply patch in reverse
stripPathsNoNumber of path components to strip
backupNoCreate backup files

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server