Skip to main content
Glama

ui_type

Input text into the focused iOS Simulator field by typing or pasting, with paste mode for non-ASCII or non-US keyboard layouts and optional field clearing.

Instructions

Input text into the iOS Simulator

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": "ui_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to input
udidNoUdid of target, can also be set with the IDB_UDID env var
methodNo"type" (default): presses keys as on a US keyboard; printable ASCII only. "paste": use when the keyboard layout is not US (e.g. AZERTY, where "type" types wrong characters) or the text is non-ASCII; pastes into the focused field (tap it first), ~2-20 stype
replaceNoPaste only: clear the focused field first, e.g. after "type" produced wrong characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.1
    • changedInput schema / properties / method / description
      Previous value: -"\"type\" (default): presses keys as on a US keyboard; printable ASCII only. \"paste\": use when the keyboard layout is not US (e.g. AZERTY, where \"type\" types wrong characters) or the text is non-ASCII; pastes into the focused field (tap it first), ~2-11 s"New value: +"\"type\" (default): presses keys as on a US keyboard; printable ASCII only. \"paste\": use when the keyboard layout is not US (e.g. AZERTY, where \"type\" types wrong characters) or the text is non-ASCII; pastes into the focused field (tap it first), ~2-20 s"
  2. Changed3 schema fields changedv2.2.0
    • addedInput schema / properties / method
      Added value: +{
      +  "default": "type",
      +  "description": "\"type\" (default): presses keys as on a US keyboard; printable ASCII only. \"paste\": use when the keyboard layout is not US (e.g. AZERTY, where \"type\" types wrong characters) or the text is non-ASCII; pastes into the focused field (tap it first), ~2-11 s",
      +  "enum": [
      +    "type",
      +    "paste"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / replace
      Added value: +{
      +  "default": false,
      +  "description": "Paste only: clear the focused field first, e.g. after \"type\" produced wrong characters",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / text / pattern
      Removed value: -"^[\\x20-\\x7E]+$"
  3. Changed2 schema fields changedv2.1.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, establishing this is a state-changing UI interaction. The description adds nothing beyond that: it doesn't say the target field must be focused, that the simulator must be booted, that input is ASCII-limited under the default method, or that the effect is transient. For a mutation tool, that is a real gap.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler; nothing is wasted, though the terseness comes at the cost of missing prerequisites noted elsewhere.

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

Completeness2/5

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

With no output schema and a mutation annotation, the description should convey prerequisites and side effects for a UI automation call. It instead supplies only a one-line purpose, leaving focus requirements, simulator-state assumptions, and method tradeoffs entirely to the schema.

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% and all four parameters carry rich, self-explanatory descriptions (including the type-vs-paste tradeoff and the replace flag). The description adds no parameter meaning, so the baseline 3 applies.

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 ('Input') and resource ('text') against a named target ('the iOS Simulator'), so the agent knows this types characters rather than tapping or swiping. It does not explicitly distinguish itself from siblings like ui_tap or ui_find_element, so it falls short of a 5.

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 description itself gives no when-to-use guidance or alternatives; the actionable conditionals ('use paste when the layout is not US', 'tap it first') live in the schema's parameter descriptions rather than the tool description. Usage is only implied by the verb.

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