Set environment variable
eurobase_set_envSets one public (non-secret) environment variable of a permitted project, creating it or replacing its value. targets is required and names where the value is used: build (used only while the app is built), app (used by the running app; App deployments in the dashboard), or both; it replaces the variable's previous targets. A change the running app reads starts a redeploy of the live app release when that release reads its variables at activation (returned as redeploy); otherwise it applies from the next deployment. A change the build reads rebuilds the live release from its source when the grant also has deployments:write (the rebuild is listed by eurobase_list_deployments); otherwise it applies from the next deployment. A variable stored as a secret is refused with ENV_CHANGE_REFUSED: secret values are added and changed by the user in the Eurobase dashboard. Public values can appear in published assets. Setting the same value again changes nothing and starts no second redeploy.
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": {
"projectId": "<projectId>",
"key": "<key>",
"value": "<value>",
"targets": "<targets>"
},
"name": "eurobase_set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| targets | Yes | ||
| projectId | Yes |