Add or update environment variable
render_update_env_varAdd or update a specific environment variable on a Render service, targeting only directly assigned variables, not linked environment groups.
Instructions
Add or update environment variable. Add or update a particular environment variable for a particular service. This only applies to environment variables set directly on the service, not to environment variables in a linked environment group. Calls PUT /services/{serviceId}/env-vars/{envVarKey} on the Render Public API.
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": {
"body": "<body>",
"envVarKey": "<envVarKey>",
"serviceId": "<serviceId>"
},
"name": "render_update_env_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body. | |
| envVarKey | Yes | The name of the environment variable | |
| serviceId | Yes | The ID of the service |