Rename or move on webspace
webspace_renameRename or move a file or directory inside a webspace as its site user, jailed to the home directory. An existing file at the target is not replaced; the call fails instead. Moving files out of public_html takes them off the website. For a VPS use vps_rename.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "webspace_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webspace ID | |
| to | Yes | New path, same rules; must not exist yet | |
| from | Yes | Current path. Path relative to the webspace's home directory, or absolute under /home/<user>/. The web root is public_html. |