---
title: "corestack_command_output_get"
url: https://docs.corefinity.com/mcp/tools/corestack_command_output_get
type: tool
last_updated: 2026-11-13
feature: commands
related:
  - https://docs.corefinity.com/mcp/long-running-tasks.md
---
# corestack_command_output_get

**Read a command's output.** Read a page of an agent command's output (stdout or stderr) from offset, at most limit bytes. Follow next_offset until eof. Once the run directory has been cleaned up the stored copy answers (redacted, the last 64 KiB). Scope: exec.

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

## When to use it

Read a page of an agent command's output (stdout or stderr) from offset, at most limit bytes. Follow next_offset until eof. Once the run directory has been cleaned up the stored copy answers (redacted, the last 64 KiB).

## Inputs

- `command_id` (integer, ≥ 1, required)
- `stream` (one of `stdout`, `stderr`, required)
- `offset` (integer, ≥ 0, default `0`)
- `limit` (integer, 1–131072, default `131072`)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "command_id": {
      "minimum": 1,
      "type": "integer"
    },
    "limit": {
      "default": 131072,
      "maximum": 131072,
      "minimum": 1,
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    },
    "stream": {
      "enum": [
        "stdout",
        "stderr"
      ],
      "type": "string"
    }
  },
  "required": [
    "command_id",
    "stream"
  ],
  "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_output_get",
  "arguments": {
    "command_id": 88412,
    "stream": "stdout"
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_command_output_get with command_id 88412, stream stdout. (Read a command's output.) Tell me what it returned.
```

## The same task elsewhere

- Guide: [Long-running tasks](https://docs.corefinity.com/mcp/long-running-tasks.md)
