Add domain root to config
add_rootRegister a new domain root for a server profile, inferring the remote path and verifying it via SFTP before saving to config.
Instructions
Register a new domain root for a server profile. Infers the remote path from the server username if not specified, verifies the directory exists via SFTP, and saves to the config file.
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": {
"domain": "<domain>"
},
"name": "add_root"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute remote path. Defaults to /home/{username}/{domain}/public_html. | |
| domain | Yes | Domain name to add, e.g. saiyoken.jp. | |
| dry_run | No | Verify without saving to config. | |
| server_id | No | Server profile id. Defaults to config.defaultServer. |