Skip to main content
Glama

craftos_ui

Read-only

Describes every screen as structured data—rectangles, text runs, colors, and wait states—so you can find and verify UI elements without screenshots; supports compact and delta views.

Instructions

Describe every screen as data instead of a picture: solid rectangles (buttons, cards, panels) and, for text-mode screens, text runs with colours, plus what the program is waiting for. Works for any script. Default format is compact: each rectangle is one string "NAME #colour x,y WxH @cx,cy" where NAME is a label you set with craftos_labels and @cx,cy is the cell to touch. delta:true returns only what changed since the previous craftos_ui / craftos_script view (use it after every action). format:"full" gives the raw objects. Use instead of craftos_screenshot to find and verify things.

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_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
deltaNoReturn only what changed since the previous call.
formatNocompact
minAreaNoSmallest rectangle area (cells) to report.

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?

Annotations already declare readOnlyHint=true, so the description does not need to argue safety; instead it adds real behavioral context — the compact string layout, what delta measures against ('the previous craftos_ui / craftos_script view'), and what full format returns. It stops short of noting any cost or size trade-offs of format:full, which keeps it from a 5.

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?

Front-loads the core purpose and keeps the format sample inline where it matters. Dense but nearly every clause carries information; the coordination of labels, delta and screenshot alternatives makes it longer than ideal but not padded.

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?

No output schema exists, and the description compensates well by specifying the compact record shape and the delta/full distinction. The one gap is minArea, whose effect on which rectangles appear is only in the schema, and the 'waiting for' payload is named but not characterized.

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?

With 75% schema coverage the baseline is 3, but the description goes further by decoding the compact output string ('NAME #colour x,y WxH @cx,cy') and explaining that @cx,cy is the cell to touch and NAME comes from craftos_labels. It also explains delta and format semantics. minArea is left to the schema, so not a 5.

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?

States a specific verb and resource — 'Describe every screen as data instead of a picture' — and enumerates what the data contains (rectangles, text runs, waiting state). It explicitly positions itself against craftos_screenshot, so an agent can distinguish it from the visual sibling without opening the 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?

Gives explicit when-to-use guidance: 'Use instead of craftos_screenshot to find and verify things' and 'use it after every action' for delta mode. Both the alternative and the condition that selects it are named, with no inference required.

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