winops_json_patch
Deep-merge new data into existing JSON files, creating the file when missing. Applies nested updates to specified keys.
Instructions
Deep-merge patch data into an existing JSON file (creates file if missing).
Return Format
{"success": bool, "path": str, "updated_keys": [str]}Examples
patch(path="D:\\config\\app.json", data={"logging": {"level": "DEBUG"}})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": {
"path": "<path>",
"data": "<data>"
},
"name": "winops_json_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Dict of keys to deep-merge into the existing file. | |
| path | Yes | JSON file to patch. | |
| indent | No | Indentation spaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||