Skip to main content
Glama

tv-remote

Press D-pad and remote buttons on Apple TV, Android TV, or Fire TV to move focus, select items, and navigate apps with single keys or multi-step button paths.

Instructions

Press a TV remote / D-pad button (or a whole path of them) on a TV device: Apple TV (tvOS), Android TV (leanback), or Vega (Fire TV). A TV is navigated with a directional remote, not touch. Use when you need to move focus or press a key on a TV, instead of gesture-tap/swipe (which do not apply on a TV). Call describe before the first press to find the cursor. Read where focus landed from the element tree in this result, or call describe again when it is missing. Returns { pressed, count }. Fails on a target that is not a TV, and on the Apple TV simulator for rewind, fastForward, next, previous, volumeUp, volumeDown and mute (its HID stack ignores them); every other button works on all three platforms.

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": {
      "udid": "<udid>",
      "button": "<button>"
    },
    "name": "tv-remote"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesTarget TV device id from `list-devices` (Apple TV, Android TV, or Vega).
buttonYesA single TV-remote button, or a path of them run in one call. Move focus with up/down/left/right, confirm with select, go back with back/menu, exit with home; the media and volume buttons press the matching remote keys. For multi-step navigation pass an array, e.g. ["up","right","right","select"]; strongly prefer this over multiple `tv-remote` calls: the whole path runs in a single call. Max items: 64.
repeatNoRepeat the whole `button` value this many times (default 1). Compact for long same-button runs, e.g. { button: "down", repeat: 12 }. Range: 1 to 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / button / description
      Previous value: -"A single TV-remote button, or a path of them run in one call. Buttons: up/down/left/right (D-pad), select (OK), back, home, menu, playPause, rewind, fastForward, next, previous, volumeUp, volumeDown, mute. The media-transport and volume keys work on Android TV and Vega; on the Apple TV simulator they are rejected (its HID stack ignores them) — the D-pad/select/back/menu/home/playPause core works on all three. For multi-step navigation pass an array, e.g. [\"up\",\"right\",\"right\",\"select\"] — strongly prefer this over multiple `tv-remote` calls: the whole path runs in a single call."New value: +"A single TV-remote button, or a path of them run in one call. Move focus with up/down/left/right, confirm with select, go back with back/menu, exit with home; the media and volume buttons press the matching remote keys. For multi-step navigation pass an array, e.g. [\"up\",\"right\",\"right\",\"select\"]; strongly prefer this over multiple `tv-remote` calls: the whole path runs in a single call. Max items: 64."
    • changedInput schema / properties / repeat / description
      Previous value: -"Repeat the whole `button` value this many times (default 1). Compact for long same-button runs, e.g. { button: \"down\", repeat: 12 }."New value: +"Repeat the whole `button` value this many times (default 1). Compact for long same-button runs, e.g. { button: \"down\", repeat: 12 }. Range: 1 to 50."
    • changedInput schema / required
      Previous value: -[
      -  "udid"
      -]New value: +[
      +  "udid",
      +  "button"
      +]
  2. First observedv0.15.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does well: it discloses the return value { pressed, count }, the failure mode on non-TV targets, and per-platform limitations (Apple TV simulator ignoring rewind/fastForward/next/previous/volume/mute) while confirming other buttons work across all three platforms. This is behavior well beyond what the schema offers.

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?

Front-loaded with the core action and platform scope, then prerequisites, then return/failure details — logical ordering. Slightly long, but every sentence carries actionable information; no filler.

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?

For a 3-parameter mutation tool with no annotations and no output schema, the description supplies prerequisites, return shape, error conditions, and platform-specific button caveats. An agent can call it correctly without further discovery.

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 baseline is 3; the description earns more by explaining the practical meaning of buttons (move focus, confirm, go back, exit) and strongly recommending array paths over multiple calls. It adds a real usage payoff beyond the schema's own descriptions, though repeat is left to the schema.

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+resource: pressing a remote/D-pad button (or a path of them) on a TV device, and names the supported platforms (tvOS, leanback, Vega). It distinguishes itself from touch tools by explicitly saying gesture-tap/swipe "do not apply on a TV."

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?

Explicitly says when to use it (moving focus or pressing a key on a TV, instead of gesture-tap/swipe) and prescribes prerequisites: call `describe` before the first press to find the cursor. It also notes failure conditions (non-TV targets) and where a follow-up `describe` is needed.

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