Skip to main content
Glama

type_text

Types text into the focused Android input field, or taps a target field by index, resource ID, or visible text before entering Unicode/special characters and optionally submitting.

Instructions

Type text into the focused input field, or first tap a target field resolved by index, id, or targetText from the latest ui_tree. Unicode and special characters use Turbo Android IME.

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

Input Schema

NameRequiredDescriptionDefault
idNoOptional resource-id from the latest ui_tree to tap before typing.
textYesText to type (or selector text when value is also provided).
indexNoOptional 1-based node index from the latest ui_tree to tap before typing.
valueNoOptional text to type when text is used as a node selector.
submitNoSubmit after typing (default false).
targetTextNoOptional visible text or content-desc from the latest ui_tree to tap before typing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose two useful traits — an implicit tap occurs before typing, and Unicode/special characters are handled through the Turbo Android IME — but omits critical behavior such as whether existing field content is replaced or appended, whether the target field must be editable, and what happens when a selector fails to resolve.

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 tight sentences with the primary action front-loaded, followed by the selector fallback and the IME note. No filler and no repetition of the tool name.

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 six-parameter mutation tool with no annotations and no output schema, the description covers the happy path and the ui_tree prerequisite but leaves the agent guessing about text replacement semantics, failure modes, and the interaction between `text`, `value`, and `submit`.

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 coverage is 100%, so all six parameters are already documented, and the description only restates the selector sources (index, id, targetText) that the schema defines. It adds no clarification of the trickiest semantic, the `text`-as-selector vs. `value`-as-content split, nor of what `submit` actually triggers.

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 gives a specific verb and resource ("Type text into the focused input field") and explains the two operating modes: type directly into focus, or tap a resolved target first. This implicitly separates it from the plain `tap` sibling because targeting happens as part of the same call, though it never names or contrasts any alternative explicitly.

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?

It communicates the main usage branch well (focused field vs. resolving a target by index, id, or targetText) and embeds the prerequisite that selectors come "from the latest ui_tree." However, it gives no when-not guidance and never says when to prefer `tap` + `type_text` in two steps or when `key` is the better choice for non-text input.

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