file_chmod
Set file permissions on OpenWrt routers using a path and mode, controlling read, write, and execute access.
Instructions
Change file permissions on the router.
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>",
"mode": "<mode>"
},
"name": "file_chmod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Permission mode (e.g., '755', '644', '+x') | |
| path | Yes | Path to the file |