Update Service Environment Variable
coolify_update_service_envUpdate an existing environment variable on a Coolify service by variable key. Configure build-time, runtime, or preview flags for docker-compose applications.
Instructions
Update an existing environment variable on a Coolify service (Flavor C / docker-compose apps). Coolify matches the var by key name. Use for multi-container compose services.
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": {
"uuid": "<uuid>",
"key": "<key>",
"value": "<value>",
"instance": "<instance>"
},
"name": "coolify_update_service_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable name to update | |
| uuid | Yes | Service UUID | |
| value | Yes | New variable value | |
| reveal | No | Reveal redacted secret values in the response (default false; the call is audited) | |
| instance | Yes | REQUIRED — which Coolify instance to mutate: 'prod' (Hetzner VPS) or 'dev' (local OrbStack VM). No default: state the target explicitly so a write never lands on prod by accident. | |
| is_preview | No | Preview-only flag | |
| is_runtime | No | Runtime availability | |
| is_buildtime | No | Build-time availability |