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
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target ID from `list-devices`. | |
| trimStatic | No | 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. | |
| showTouches | No | Draw touch markers in the video (default true). Recordings of physical iPhones have no touch markers. | |
| timeLimitSeconds | No | Auto-stop cap in seconds (default 180). Set it to slightly more than the interaction you plan to capture. Range: 1 to 600. |