Read one environment variable
get_environment_valueReads one environment variable by project and row ID. Non-secret values are available directly. Secret values require the user’s approval in their signed-in dashboard for that specific read.
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": {
"project_id": "<project_id>",
"variable_id": "<variable_id>"
},
"name": "get_environment_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Exact stable project ID. Resolve it first. Never invent an update target. | |
| approval_id | No | Approval ID returned for this exact secret, supplied after the user acts in their signed-in dashboard. | |
| variable_id | Yes | Exact environment_previews row ID from get_dynamic_project. |