---
title: "corestack_command_get"
url: https://docs.corefinity.com/mcp/tools/corestack_command_get
type: tool
last_updated: 2026-11-13
feature: commands
related:
  - https://docs.corefinity.com/api/reference/sites/get-command.md
  - https://docs.corefinity.com/mcp/long-running-tasks.md
---
# corestack_command_get

**Get a command.** Read one command run on an environment — a control panel function or an agent's command: its status, exit code, timings and, once it has ended, why. Page an agent command's output with corestack_command_output_get. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

Read one command run on an environment — a Control Panel function or an agent's command: its status, exit code, timings and, once it has ended, why. Page an agent command's output with corestack_command_output_get.

## Inputs

- `command_id` (integer, ≥ 1, required)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "command_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "command_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_command_get",
  "arguments": {
    "command_id": 88412
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_command_get with command_id 88412. (Get a command.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/commands/{command}](https://docs.corefinity.com/api/reference/sites/get-command.md)
- Guide: [Long-running tasks](https://docs.corefinity.com/mcp/long-running-tasks.md)
