Skip to main content
Glama

craftos_act

Sends a keypress, text entry, or monitor touch, waits until the program consumes it and the screen settles, then returns whether input was consumed and the new waiting state.

Instructions

Send one input (touch a monitor cell, press a key, or type text), wait until the program actually consumed it, then wait for the screen to settle. Returns consumed (false = the program was not listening for that input) and the new waiting state; follow with craftos_ui to read the result.

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

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
keyNoPress this key, e.g. "enter" or "up".
textNoType these characters.
touchNoTouch this monitor cell (1-based); craftos_ui gives each button's @x,y.
quietMsNoHow long the screen must stay unchanged afterwards.
timeoutMsNoLongest wait for the program to react and settle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.7.1
    • addedInput schema / properties / key / description
      Added value: +"Press this key, e.g. \"enter\" or \"up\"."
    • addedInput schema / properties / quietMs / description
      Added value: +"How long the screen must stay unchanged afterwards."
    • addedInput schema / properties / text / description
      Added value: +"Type these characters."
    • addedInput schema / properties / timeoutMs / description
      Added value: +"Longest wait for the program to react and settle."
    • addedInput schema / properties / touch / description
      Added value: +"Touch this monitor cell (1-based); craftos_ui gives each button's @x,y."
  2. First observedv0.7.0

TDQS

A3.7/5.0
Behavior3/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 behavioral load and does add real value: it discloses that the call blocks until the program consumes the input, that a screen-settle phase follows, and that `consumed: false` means the program was not listening. It stops short of the highest-value behavior for a blocking call — what happens on timeoutMs expiry (error vs. partial result) and whether the tool is safe to retry after a timeout.

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, zero filler, action chain front-loaded and the follow-up call deferred to the end where it belongs. The parenthetical enumerating input types could have been a list, but inline it costs nothing.

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 6-parameter blocking mutation tool with a nested touch object and no output schema, the description supplies the blocking contract, the return shape in prose (consumed plus waiting state), and the next step. The remaining gap is failure-mode coverage on timeout, which matters more here than on a non-blocking tool.

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 the baseline is 3, but the description adds genuine meaning beyond the schema: 'Send ONE input' implies key/text/touch are mutually exclusive rather than cumulative, which the schema does not state. It also frames quietMs and timeoutMs as the settle-vs-reaction phases, giving the agent a mental model for the two timers.

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

Purpose4/5

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

States a specific verb chain (send input, wait for consumption, wait for settle) and enumerates the three input kinds (touch cell, key press, text), so the resource and action are unambiguous. It does not differentiate itself from the single-purpose siblings that also send keys/text/touches, so an agent cannot tell from this text alone why it would pick this wrapper over those.

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

Usage Guidelines3/5

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

The sequencing guidance is clear and actionable: call this, then follow with craftos_ui to read the result, and craftos_ui is named as the source of @x,y coordinates. What is missing is any exclusion or selection rule — nothing says when the program is already in a known state and this wait-then-settle pattern is unnecessary, or when a lighter input tool is preferred.

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