set_env_var
Set or change an app's cloud code environment variable, such as a service API key, then redeploy the app and follow with wait_for_deployment.
Instructions
Set or change an environment variable of an app (process.env in its cloud code), e.g. the key of a service the cloud code calls. The app is redeployed: follow with wait_for_deployment.
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": {
"appObjectId": "<appObjectId>",
"name": "<name>",
"value": "<value>"
},
"name": "set_env_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Environment variable name | |
| value | Yes | Environment variable value | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) |