patch-saveFileAsPatch
Save a file as a patch for a Dokploy application or compose service by providing the file path, content, and create/update mode.
Instructions
POST /patch.saveFileAsPatch
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": {
"id": "<id>",
"type": "<type>",
"filePath": "<filePath>",
"content": "<content>"
},
"name": "patch-saveFileAsPatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | Yes | ||
| content | Yes | ||
| filePath | Yes | ||
| patchType | No | update |