Skip to main content
Glama

screen-recording-start

Starts an MP4 recording of a device screen to capture interactions or animations, with optional touch markers and auto-stop timing.

Instructions

Start an MP4 recording of the device screen. Use when the user wants a video of an interaction or animation. Use screenshot for a still image. Recording continues across tool calls until stopped or until the time limit. Set a reminder as soon as recording starts. The start result returns outputFile on the tool-server host. Retrieve the video with screen-recording-stop, even after the time limit. Start fails if the target is unavailable or already has a recording waiting to be stopped or retrieved. Local simulators, Android emulators and devices, and cabled iPhones require ffmpeg. On a physical iPhone, check for transportType: "wired" in list-devices and have the user allow camera access for ios-screen-stream if prompted on the first recording. tvOS, Chromium, and Vega are unsupported.

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>"
    },
    "name": "screen-recording-start"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesTarget ID from `list-devices`.
trimStaticNoDefault true. Collapse stretches where the screen does not change: the first second of each still stretch is kept, then unchanged frames are dropped until something moves again, so a long recording with brief activity comes back short instead of full of dead air. Set false to keep a faithful real-time recording.
showTouchesNoDraw touch markers in the video (default true). Recordings of physical iPhones have no touch markers.
timeLimitSecondsNoAuto-stop cap in seconds (default 180). Set it to slightly more than the interaction you plan to capture. Range: 1 to 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / showTouches / description
      Previous value: -"Default true. Draw simulator-server's touch visualizer into the recording: a pulse marks each tap, a comet trail follows swipes and drags, and paired markers show two-finger pinch/rotate, so the video makes clear where every interaction landed. Set false to record the raw screen with no overlay."New value: +"Draw touch markers in the video (default true). Recordings of physical iPhones have no touch markers."
    • changedInput schema / properties / timeLimitSeconds / description
      Previous value: -"Auto-stop cap in seconds (default 180, max 600). Set it to slightly more than the interaction you plan to capture."New value: +"Auto-stop cap in seconds (default 180). Set it to slightly more than the interaction you plan to capture. Range: 1 to 600."
    • changedInput schema / properties / trimStatic / description
      Previous value: -"Default true. Collapse stretches where the screen does not change: the first second of each still stretch is kept, then unchanged frames are dropped until something moves again, so a long recording with brief activity comes back short instead of full of dead air. The returned durationMs is the trimmed length; wallClockMs/trimmedMs report what was removed. Set false to keep a faithful real-time recording."New value: +"Default true. Collapse stretches where the screen does not change: the first second of each still stretch is kept, then unchanged frames are dropped until something moves again, so a long recording with brief activity comes back short instead of full of dead air. Set false to keep a faithful real-time recording."
    • changedInput schema / properties / udid / description
      Previous value: -"Target device id from `list-devices` (iOS Simulator UDID or Android serial)."New value: +"Target ID from `list-devices`."
  2. Addedv0.17.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: recording persists across tool calls, auto-stops at a time limit, start is refused if a prior recording is pending, and the output file lives on the tool-server host. It further discloses environment-specific behavior (ffmpeg dependency, wired iPhone transport check, camera permission for ios-screen-stream, unsupported tvOS/Chromium/Vega).

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?

Dense but largely waste-free, with the core purpose front-loaded and caveats following. A few items (the reminder instruction, the iPhone camera-permission aside) sit awkwardly in the flow, but nothing is redundant 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?

No output schema exists, and the description compensates by naming the returned `outputFile` and its host location plus the retrieval path via `screen-recording-stop`. For a stateful, long-running capture tool, the lifecycle, failure modes, and platform constraints are all covered.

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 each parameter (udid, trimStatic, showTouches, timeLimitSeconds) is already fully documented with defaults and ranges. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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?

Opens with a specific verb and resource: "Start an MP4 recording of the device screen." It immediately distinguishes itself from the `screenshot` sibling by naming it and contrasting "video" with "still image".

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?

Gives an explicit when-to-use ("when the user wants a video of an interaction or animation") and a named alternative (`screenshot`). It also spells out preconditions and failure conditions (target unavailable, existing unretrieved recording, ffmpeg required, unsupported platforms) and routes completion to `screen-recording-stop`.

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