Change permissions on webspace
webspace_chmodChange the permission bits of one file or directory inside a webspace (not recursive), as its site user, jailed to the home directory. Usual modes: 0644 for files, 0755 for directories, 0600 for files with secrets such as database passwords. A wrong mode can take the site offline or expose a secret. For a VPS use vps_chmod.
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": {
"id": "<id>",
"path": "<path>",
"mode": "<mode>"
},
"name": "webspace_chmod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webspace ID | |
| mode | Yes | Octal string such as '0644', or the same value as a decimal number (420) | |
| path | Yes | Path relative to the webspace's home directory, or absolute under /home/<user>/. The web root is public_html. |