update_site_env
Replace a site's .env file with new content. Sends the complete file as a patch; read the file first to avoid losing data.
Instructions
Replace a site's .env file with the given content (full-file PATCH — send the complete file, not a diff). Read it first with get_site_env. Ploi applies the write asynchronously, so allow a few seconds before reading it back (an immediate get_site_env may 404 or show stale content).
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": {
"server_id": "<server_id>",
"site_id": "<site_id>",
"content": "<content>"
},
"name": "update_site_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The ID of the server | |
| site_id | Yes | The ID of the site | |
| content | Yes | The full .env file content to write (replaces the existing file entirely) |