CorefinityCorefinityDocs
Open the Control PanelControl Panel
Platform tools · 2 of 2

corestack_function_run

Run a site function.

Scope execRuns as a taskCan return a secretCoreCluster
On this page

When to use it

Run one of the environment's functions (corestack_function_catalogue_list lists them): pass its inputs and confirm: true where it asks. Long functions answer a task. An admin reset, admin create or login link shows its secret once.

A queued function's own outcome is on its command (corestack_command_get). For example, magento_2fa_enable fails without changing anything when another change already holds the site (a copy, an update that stopped part-way, a migration: release that hold first), or when the site's web traffic could not be held for the recompile (try again in a minute).

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_function_run with site_id 4211, function flush_cache. (Run a site function.) Tell me what it returned.

Inputs

confirmboolean

Defaults to false.

functionstringRequired

Up to 64 characters.

inputsobject

The function's own inputs, as the catalogue lists them.

reveal_to_agentboolean

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

site_idintegerRequired

At least 1.

Example call

tools/call
{
  "name": "corestack_function_run",
  "arguments": {
    "site_id": 4211,
    "function": "flush_cache"
  }
}

If it is refused

ReasonWhat to do
maintenanceThe site is in maintenance mode; turn it off first, or wait for the maintenance to end.
platform_plugins_offThe function needs Corefinity's platform plugins (wp_login_link, "Log in to wp-admin"), which are turned off for this WordPress site; corestack_site_platform_plugins_get shows the setting and what else stops.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
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.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
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