patch_apply
Apply a unified diff patch to a remote file over SSH. Specify the session, file path, and patch content to modify files autonomously.
Instructions
Applies a patch to a file
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"path": "<path>",
"patch": "<patch>"
},
"name": "patch_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID | |
| path | Yes | File path to patch | |
| patch | Yes | Patch content (unified diff format) |