Tool details
| Field | Value |
|---|---|
| Name | upsert_environment_variable |
| Group | Environments |
Playground
Input schema
Input schema
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug"
},
"environment": {
"type": "string",
"description": "Environment name (e.g., production, preview) or ID"
},
"key": {
"type": "string",
"description": "Variable name (e.g., API_KEY, DATABASE_URL)"
},
"value": {
"type": "string",
"description": "Variable value"
}
},
"required": [
"project_reference",
"environment",
"key",
"value"
],
"additionalProperties": false,
"description": "Input schema for the upsert_environment_variable tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}
Output schema
Output schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the returned record."
},
"key": {
"type": "string",
"description": "The key associated with this tool result."
},
"value": {
"type": "string",
"description": "The value associated with this tool result."
},
"action": {
"type": "string",
"enum": [
"created",
"updated"
],
"description": "The action associated with this tool result."
},
"environment": {
"type": "string",
"description": "The environment associated with this tool result."
}
},
"required": [
"id",
"key",
"value",
"action",
"environment"
],
"additionalProperties": false,
"description": "Structured result returned by the upsert_environment_variable tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}