CorefinityCorefinityDocs
Open the Control PanelControl Panel
Error pages · 8 of 8

corestack_error_pages_copy

Copy error pages from another environment.

Scope writeAsks you to confirmRuns as a taskNo secrets returned
On this page

When to use it

Copy another environment's error pages onto this one: the codes, every page with its message, and the support email. Call it on the environment that changes (site_id), name the one to copy from (from_site_id), and send this environment's version from corestack_error_pages_get. To promote staging's pages to production, call it on the production row with confirm_production: true.

The copy is a new revision on this environment and is applied exactly like corestack_error_pages_update: the same task, the same error_pages outcome in its result and the same refusals. The environment copied from does not change. Pages that are already the same answer {operation: null, revision: null}.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_error_pages_copy with site_id 4211, from_site_id 4212, version 2, note Promote the staging pages. (Copy error pages from another environment.) Tell me what it returned.

Inputs

confirm_productionbooleanConfirmation

Required (true) when this environment is production.

from_site_idintegerRequired

The environment to copy from. A token limited to some sites must cover both. At least 1.

notestring

Why, shown in the history. Up to 200 characters.

site_idintegerRequired

The environment that changes. At least 1.

versionintegerRequired

This environment's version from corestack_error_pages_get. At least 0.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_error_pages_copy",
  "arguments": {
    "site_id": 4211,
    "from_site_id": 4212,
    "version": 2,
    "confirm_production": true,
    "note": "Promote the staging pages"
  }
}

If it is refused

ReasonWhat to do
confirmThis environment is production; send confirm_production: true.
staleSomeone changed this environment's pages since version was read.
error_pages_lockedCorefinity has locked this environment's error pages.
invalid_pageoverlap_nginx_rules, too_large, runtime_lacks_capability, operation_in_progress, switch_reconcile_failed, managed_elsewhere: as corestack_error_pages_update.
feature_offError pages are not available to you yet.
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