Apply Patch
patch_applyApply a unified diff patch to a file on a remote server via an active 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 |
|---|---|---|---|
| sessionId | Yes | SSH session ID | |
| path | Yes | File path to patch | |
| diff | Yes | Patch content (unified diff format) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||