winops_json_write
Write JSON data to a file at the specified path, creating parent directories automatically when they do not exist. Returns the file path and success status for confirmation.
Instructions
Write data to a JSON file, creating parent directories as needed.
Return Format
{"success": bool, "path": str}Examples
write(path="D:\\config\\settings.json", data={"debug": true})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_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to serialise as JSON. | |
| path | Yes | Destination file path. | |
| indent | No | Indentation spaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||