update_env_var
Update an existing environment variable by ID with new key, value, target, type, or comment. Modify Vercel project environment settings directly.
Instructions
Update an existing environment variable (value, target, type, comment) by id.
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>",
"envId": "<envId>"
},
"name": "update_env_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project id or name. | |
| envId | Yes | Environment variable id. | |
| key | No | ||
| value | No | ||
| target | No | ||
| type | No | ||
| gitBranch | No | ||
| comment | No | ||
| teamId | No | Team ID to scope the request. Falls back to VERCEL_TEAM_ID when omitted. | |
| slug | No | Team slug to scope the request (alternative to teamId). |