Set env variables
set_envSets (or deletes) env variable values for the service a project deploys. Values are stored encrypted and are never returned. Other values are kept. On a live project, the services whose env changed are redeployed; otherwise the values apply on the next deployment. Multi-line values are stored as credential files. Needs Operate access.
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": {
"project": "<project>"
},
"name": "set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delete | No | Names to remove | |
| values | No | Names to values, e.g. {"API_URL": "https://..."} | |
| project | Yes | The project's id, name or repository (owner/name). | |
| service | No | Service id or name, when the project has several | |
| workspace | No | A teammate's workspace id. Default: your own. |