Export Variables
export_variablesExport an environment's variables as .env or JSON with secret values always masked. Produce output suitable for review or re-import into another environment.
Instructions
Export an environment's variables as .env or JSON text. Secret values are ALWAYS masked — MCP has no path to decrypted secrets; use the web app if you need the real values. The output is suitable for review and for feeding back into import_variables.
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": {
"environmentId": "<environmentId>"
},
"name": "export_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'env' (KEY=VALUE lines) or 'json'. Defaults to 'env'. | env |
| projectId | No | Public ID (GUID) of the project. If omitted, uses the active project context. | |
| environmentId | Yes | Public ID (GUID) of the environment |