Skip to main content
Glama
computer
by zznabil

Type into element

element_type
Destructive

Types text into a UI element, using accessibility insertion for native fields and simulated keystrokes for other focused elements.

Instructions

Type text into an element: native text fields take it by AX insertion, others as keystrokes once focused.

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": {
      "ref": "<ref>",
      "text": "<text>"
    },
    "name": "element_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from ax_tree/ax_find, e.g. "e12".
textYesText to type.
takeoverNoOmit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare the write/destructive and open-world profile, so the description's contribution is mechanism: native text fields receive AX insertion while other elements receive synthesized keystrokes after focus. That is a genuinely useful behavioral distinction an agent cannot get from the annotations. It stops short of saying whether existing content is replaced or appended, and whether keystroke typing can trigger element side effects (e.g. form submission).

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?

A single front-loaded sentence with no filler, and the distinguishing mechanism (AX insertion vs keystrokes) is packed into the same clause. Every element of the sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a small tool with full annotation coverage and complete schema descriptions, the description covers the core mechanism adequately and needn't explain return values. However, for a destructive typing operation it leaves the replace-vs-append question and the failure mode for non-editable elements undocumented.

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 ref, text, and takeover are already documented, and the baseline is 3. The description adds no per-parameter meaning; the "once focused" phrasing only loosely connects to the takeover parameter without clarifying how background-vs-foreground selection interacts with the two input paths.

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?

The description states a concrete verb and target ("Type text into an element") and distinguishes itself structurally from tools that type into a focused window by requiring an element ref. It does not name sibling alternatives such as type_text or element_set_value, so the differentiation is implicit rather than explicit.

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

Usage Guidelines2/5

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

There is no statement of when to choose this over type_text, element_set_value, or press_keys, and no prerequisites or exclusions. The only usage signal is the oblique "once focused" clause, which hints that focus may need to be established but leaves the agent to infer the conditions.

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