Skip to main content
Glama

keyboard

Type text or press named keys such as Enter, Escape, and arrow keys on iOS simulators, Android emulators, Chromium apps, and TV devices.

Instructions

Type text or press special keys on the device (iOS simulator, Android emulator, Chromium app, Vega Virtual Device, or Apple TV / Android TV) using keyboard events. Use when you need to enter text or trigger a named key such as enter, escape, or arrow keys. On Vega and Apple TV / Android TV, prefer the remote tools for D-pad navigation; use keyboard to type into a focused text field (e.g. a search or login box). Returns { typed: string, keys: number }. Fails if an unsupported key name is provided or the simulator-server / emulator backend / Chromium CDP / Vega adb / TV control daemons are not reachable for the given device.

  • text: types a string character by character (supports uppercase, digits, common punctuation)

  • key: presses a single named key (enter, escape, backspace, tab, arrow-up/down/left/right, f1–f12) — NOT supported on TV targets; move focus with tv-remote instead. On a TV target (runtimeKind 'tv') only text applies — focus a text field first (with tv-remote), then type into it (injected HID keyboard on Apple TV, adb input text on Android TV). Provide text, key, or both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoNamed key to press: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1–f12. Not supported on TV targets — move focus with `tv-remote` (up/down/left/right) instead.
textNoText to type character by character. Handles uppercase and common punctuation.
udidYesTarget device id from `list-devices` (iOS UDID, Android serial, Vega serial, or Chromium id).
delayMsNoDelay in ms between key presses (default 50). Ignored on Vega (text/keys injected in a single shot) and on TV targets (Apple TV / Android TV type the whole string at the daemon's own cadence).
Behavior5/5

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

No annotations are provided, so the description carries full burden. It details behavioral traits: text is typed character by character, key presses specific named keys, differences for TV targets (only text allowed, focus required), delay behavior (ignored on Vega and TV), and failure conditions (unsupported key, backend unreachable). This is comprehensive for a mutation tool.

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?

The description is slightly long but well-structured with clear sections (purpose, usage, return, parameters, target-specific notes). It is front-loaded with the core purpose. Some redundancy exists (e.g., repeating 'not supported on TV' in two places), but overall it communicates efficiently.

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

Completeness5/5

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

Given the tool's complexity (multiple target types, 4 parameters, no output schema), the description covers all necessary aspects: behavior, parameters, target-specific nuances, failure modes, and return value. It is fully self-contained and leaves no major gaps for the agent.

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%, but the description adds value beyond the schema. For 'key', it reiterates the unsupported on TV and suggests 'tv-remote'; for 'text', it mentions uppercase and punctuation; for 'delayMs', it explains when ignored. While the schema already defines parameters, the description provides essential context for correct usage.

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?

The description clearly states the tool types text or presses special keys on various devices. It specifies the verb 'type' and 'press', identifies the resource ('keyboard events'), and distinguishes from sibling tools like 'tv-remote' for navigation. The return type and target devices are also mentioned.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool (enter text or trigger named keys) and when not to (prefer remote tools for D-pad on TV). It provides alternatives like 'tv-remote' for focusing text fields on TV targets, and notes that 'key' is not supported on TV, guiding the agent to use 'text' instead.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-mansion/argent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server