file_write
Write content to files on OpenWrt routers, creating them if they don't exist. Optionally append to existing files to update configurations.
Instructions
Write content to a file on the OpenWrt router. Creates the file if it doesn't exist.
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": "file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path for the file on the router | |
| append | No | If true, append to the file instead of overwriting | |
| content | Yes | Content to write to the file |