write_file
Write content to a file. Safe mode restricts writes to /tmp and /var/tmp; system directories are always blocked.
Instructions
Write content to a file. This is a dangerous operation. In safe mode, only writes to /tmp and /var/tmp are allowed. System directories (/etc, /bin, /usr, etc.) are always blocked.
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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file to write | |
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| content | Yes | Content to write to the file |