Record
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Record the screen to a video: start, stop with a path to save it, or omit the action to ask whether a recording is running. These call app_record.
Record
public IDictionary<string, object?> Record(string? action = null, string? path = null)
Records the screen: action "start", or "stop" with a path to save the video; neither asks whether one is running. Stop returns the file's frames and duration, read from its own header; a still screen is one frame on Android, which is not a failure. A relative path is this process's.
Examples
Start recording the screen
device.Record("start");
The same call from the command line, mobium record start, printed on an Android 15 emulator:
recording — stop it with action "stop" and a path
Stop, and save the video
var video = device.Record("stop", "flow.mp4");
The same call from the command line, mobium record stop -o flow.mp4, printed on an Android 15 emulator:
saved …/flow.mp4: 54 frames, 1.605s of video, recorded over 1.705s