CorefinityCorefinityDocs
Open the Control PanelControl Panel
Logs · 5 of 20

corestack_logs_context_get

Lines around a log line.

Scope readNo secrets returned
On this page

When to use it

The lines just before and after one log line from a query (its stream and time), oldest first: what happened around it.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_logs_context_get with site_id 4211, line 9f3c2a7b1e4d6058,1760745600123456789. (Lines around a log line.) Tell me what it returned.

Inputs

afterinteger

Defaults to 20. 0 to 100.

beforeinteger

Defaults to 20. 0 to 100.

environment_idinteger

A row of the same site: production or one of its environments. Omitted: the row site_id names. At least 1.

linestringRequired

<stream_id>,<time> from a query line. Up to 200 characters.

scopestring

Env (the default): that one row; site: every environment of the site you may see. Defaults to env.

envsite
site_idintegerRequired

The site (any of its environments answers for its group). At least 1.

Example call

tools/call
{
  "name": "corestack_logs_context_get",
  "arguments": {
    "site_id": 4211,
    "line": "9f3c2a7b1e4d6058,1760745600123456789"
  }
}

If it is refused

ReasonWhat to do
line_not_foundThe log line is no longer in the window; run the query again.
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