Skip to main content
Glama

screen

Runs one ai-screen (screenctl) command in a chosen desktop window to read text, click by label, and type into apps, letting AI agents operate desktop software.

Instructions

Run one ai-screen (screenctl) command in the user's chosen window. Examples: "select window firefox", "see", "page --grep price", "find 'Sign in'", "click --text 'Sign in' --role button", "type --into Email user@mail.com", "goto example.com", "mark --text 'Total'", "shot", "done". Read the screen_guide tool first. Exit codes: 0 ok, 2 error, 3 denied/stopped by the user (stop and ask), 4 a find/wait/expect condition is not met (re-plan).

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": {
      "command": "<command>"
    },
    "name": "screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
stdinNotext for `type -` (long text, quotes, newlines)
commandYesscreenctl arguments, shell-quoted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it defines four exit codes with prescribed agent reactions, and warns that a denial (3) requires user interaction. It does not state that commands like click/type mutate live page state, nor anything about rate limits or concurrency in the 'user's chosen window'.

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?

Front-loaded with the verb and resource, then examples, then prerequisite, then exit codes, in descending order of need. The exit-code legend is maximally compressed (number, meaning, action) and the example list earns its space by documenting an otherwise undescribed command DSL.

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 two-parameter wrapper around an external CLI with no annotations and no output schema, the description covers invocation form, prerequisite reading, and failure handling well. The main remaining gap is return shape — what 'see' or 'shot' actually yields to the agent — which is deferred to screen_guide.

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 examples add real semantic value by demonstrating the command grammar (flags like --grep, --text, --role, --into) that the schema only calls 'screenctl arguments, shell-quoted'. The stdin parameter's purpose is already documented in the schema, so the description correctly does not repeat it.

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 ('Run one ai-screen (screenctl) command in the user's chosen window') and immediately grounds it with ten concrete command examples, so the agent knows exactly what class of operation this is. The word 'one' implicitly separates it from the batch sibling, and it names screen_guide as a prerequisite.

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?

Gives a clear prerequisite ('Read the screen_guide tool first') and encodes decision rules in the exit-code legend: code 3 means stop and ask the user, code 4 means re-plan rather than retry. It stops short of an explicit when-to-use-this-vs-screen_batch rule, which an agent must infer from the word 'one'.

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

Deploy Server

Other Tools