apply_patch
apply_patchApply a code patch to one or more files using the Begin/End Patch format to automatically modify file content.
Instructions
Apply a patch to one or more files using the apply_patch format. The input should include *** Begin Patch and *** End Patch markers.
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": {
"input": "<input>"
},
"name": "apply_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Patch content using the *** Begin Patch/End Patch format. |