Skip to main content
Glama

craftos_type

Types keyboard text into an emulated ComputerCraft computer and returns immediately instead of waiting for the program, so agents can send input ahead or to busy programs.

Instructions

Type text into the computer, like a player at the keyboard, and return "ok" at once without waiting for the program. Prefer craftos_act with text, which also waits until the program read it and the screen settled; use this one to type ahead or into a program that is busy.

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>",
      "text": "<text>"
    },
    "name": "craftos_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
textYesCharacters to type, as char events.
enterNoPress Enter after the text (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.7.1
    • addedInput schema / properties / enter / description
      Added value: +"Press Enter after the text (default true)."
    • addedInput schema / properties / text / description
      Added value: +"Characters to type, as char events."
  2. First observedv0.7.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations only declare openWorldHint=false and destructiveHint=false; the description adds the crucial non-blocking contract ('return "ok" at once without waiting for the program'), which tells the agent it gets no delivery confirmation. It does not describe error behavior or what happens if the session id is stale, so it stops short of full disclosure.

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

Conciseness5/5

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

Two sentences, both earning their place: the first defines behavior and the immediate return, the second routes to the sibling. No redundant restatement of the name or title.

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 three-parameter, fully-described schema with no output schema, the definition covers the essential contract, including that the return value is uninformative. It could go slightly further by hinting how to observe the effect afterwards (e.g. reading the terminal), but nothing critical is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains id, text, and the enter default. The description only reinforces that text is typed as keystrokes and does not add format or edge-case detail beyond the schema, which is the expected baseline here.

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 target ('Type text into the computer, like a player at the keyboard') and immediately positions it against craftos_act, so the agent can distinguish the two without consulting schemas.

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?

Explicitly names the preferred alternative (craftos_act with text) and states the conditions that select this tool instead: typing ahead, or a program that is busy. This is a genuine when/when-not routing rule rather than implied usage.

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