Skip to main content
Glama

craftos_read_terminal

Read-only

Reads plain text from the terminal and every monitor, one entry per screen, to get on-screen words without a screenshot. Use delta mode to return only screens that changed.

Instructions

Read the plain text of the terminal and every monitor, one entry per screen with its window number, peripheral name and lines. Cheaper than a screenshot when only the words matter; craftos_ui also gives colours, buttons and the cells to touch. delta:true gives a screen that has not changed since the previous read_terminal of this session as just {window, peripheral?, unchanged: true}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "craftos_read_terminal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
deltaNoReturn only what changed since the previous call.
fullScreensNoKeep every line, trailing blank ones too (default: lines stop at the last non-blank one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The readOnlyHint annotation already covers safety, and the description goes well beyond it by specifying the per-screen entry structure and the exact delta payload ({window, peripheral?, unchanged: true}). It also discloses the default line-trimming behaviour, which an agent would otherwise not predict. Minor gap: no mention of failure behaviour for an invalid or expired id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the primary function, then alternatives, then the delta contract. Density is high but nearly every clause carries information. A lightly more broken-up structure would help an agent parse the delta clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description responsibly describes both the normal per-screen entry shape and the shortened delta entry shape. With three simple parameters and an annotation covering safety, this is nearly complete; only error and pagination/large-output behaviour are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description adds real meaning the schema lacks: it spells out the precise shape returned when delta:true, and clarifies that delta compares against 'the previous read_terminal of this session' rather than any arbitrary prior state. fullScreens is only restated, not enriched.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource ('Read the plain text of the terminal and every monitor') plus the exact return shape ('one entry per screen with its window number, peripheral name and lines'). It also implicitly separates itself from craftos_screenshot and craftos_ui, so an agent can place it among siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit selection guidance: 'Cheaper than a screenshot when only the words matter' and 'craftos_ui also gives colours, buttons and the cells to touch' name the alternative and the condition that picks it. The delta clause additionally tells the agent when to request incremental output versus a full read.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.