Change Webroot
kinsta_environments_webrootChange the webroot subfolder for a Kinsta environment to serve a different directory. Returns an operation_id to track the update.
Instructions
Change the webroot subfolder for an environment. Returns an operation_id.
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": {
"env_id": "<env_id>",
"web_root_subfolder": "<web_root_subfolder>"
},
"name": "kinsta_environments_webroot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | The environment ID | |
| clear_all_cache | No | Clear all caches after change | |
| web_root_subfolder | Yes | New webroot subfolder path | |
| refresh_plugins_and_themes | No | Refresh plugins and themes after change |