Apply Patch
patch_applyApply a patch (unified diff) to a remote file through an SSH session.
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>",
"diff": "<diff>"
},
"name": "patch_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Patch content (unified diff format) | |
| path | Yes | File path to patch | |
| sessionId | Yes | SSH session ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| changed | Yes |