CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 59 of 65

corestack_enterprise_variable_reveal

Show a CoreStack Enterprise build variable.

Scope execCan return a secret
On this page

When to use it

Show the value of one of a CoreStack Enterprise environment's build variables. By default it opens in the person's browser on a secret page, and nothing is read until they press Show. Only with exec and reveal_to_agent: true is the value returned to you, as {name, value}. A cleared variable's value is "". The reveal is recorded. This is the only way a stored value is shown: the variables list and the set's answer never carry one. For a CoreStack or CoreCluster site, use corestack_deployments_variable_reveal by site_id instead.

The public API's POST /api/environments/{environment}/variables/{name}/reveal answers the value to the token's own user, as reveal_to_agent does here; both share the credentials budget of 10 reveals a minute.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_enterprise_variable_reveal with enterprise_env_id 1530, name API_TOKEN. (Show a CoreStack Enterprise build variable.) Tell me what it returned.

Inputs

enterprise_env_idintegerRequired

A CoreStack Enterprise environment's id; for CoreStack or CoreCluster use the corestack_deployment_* tools. At least 1.

namestringRequired

The variable's name from corestack_enterprise_variables_list, as it was saved. A variable saved before today's name rules (with a hyphen, say) can still be shown by that name.

reveal_to_agentboolean

Return the secret to you instead of opening it in the person's browser. Needs exec. Defaults to false.

Example call

tools/call
{
  "name": "corestack_enterprise_variable_reveal",
  "arguments": {
    "enterprise_env_id": 1530,
    "name": "API_TOKEN"
  }
}

If it is refused

ReasonWhat to do
not_availableThe stored value can no longer be read ("This value can no longer be read. Set it again."); set it again with corestack_enterprise_variable_set.
rate_limitedMore than 10 reveals in a minute.
invalid_argumentsA CoreStack or CoreCluster environment; use the corestack_deployments_* tools by site_id.
tenant_mismatchThe environment does not exist, is not the person's, or is hidden from them; and a name the environment has no variable of, before any link is offered. Both answers are the same, so read corestack_enterprise_variables_list to tell them apart.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT