Skip to main content
Glama

craftos_script

Runs multiple touch, key, text, expectation, and clock-advance steps in one call, returning compact pass/fail details, evidence, and screen deltas for ComputerCraft program testing.

Instructions

Run many steps in one call and get one compact result: [{touch:{name:"HIT"}}, {expect:[{text:"You win"}]}, {advance:30}, ...]. Every touch/key/text waits until the program consumed it and the screen settled; a step fails if the program ignored the input (unless lenient). Stops at the first failure (stopOnFail:false to continue), returns only the failing steps with reasons and nearest matches, saves evidence files, and ends with a compact delta of the screens (ui:"none"|"delta"|"full"). One call replaces dozens of act/ui round trips.

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>",
      "steps": "<steps>"
    },
    "name": "craftos_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
uiNodelta
stepsYes
quietMsNo
evidenceNo
timeoutMsNo
stopOnFailNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare openWorldHint=false and destructiveHint=false, so the description carries the real behavioral load and does so well: input steps block until the program consumed them and the screen settled, ignored input fails the step unless lenient, execution halts at first failure, only failing steps are returned with reasons and nearest matches, evidence files are saved, and the response ends with a screen delta whose verbosity is set by ui.

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-loaded with a concrete literal example of the steps payload, then packed with semantics. The parenthetical asides ('stopOnFail:false to continue', 'ui:"none"|"delta"|"full"') are dense but each carries decision-relevant information; nothing is filler.

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?

For a 7-parameter, no-output-schema batch tool this is close to sufficient: it explains what a successful call returns (compact result plus screen delta) and what a failed call returns (failing steps with reasons and nearest matches). The absence of any mention of quietMs and timeoutMs leaves timing/tuning behavior underspecified.

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 description coverage is only 14%, so the description must compensate, and it does for the hard part: it exemplifies step kinds (touch, expect, advance), explains wait/settle semantics, names lenient and stopOnFail, and documents the ui enum values. It leaves quietMs and timeoutMs entirely to the schema, which is the main remaining gap.

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?

The description opens with a specific verb and resource ('Run many steps in one call and get one compact result') and immediately shows the concrete step shape. It distinguishes itself from the single-action siblings by closing with 'One call replaces dozens of act/ui round trips,' naming the alternatives it replaces.

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

Usage Guidelines4/5

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

It gives a clear selection rule: batch many steps here instead of many craftos_act/craftos_ui round trips. It also explains the failure-mode choice (stopOnFail:false to continue) and the lenient escape hatch. It stops short of saying when NOT to use it, e.g. when exploring interactively or when a single action with immediate inspection is preferable.

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