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
record(options?: { action?: 'start' | 'stop'; path?: string }): Promise<Data>
Examples
Start recording the screen
await device.record({ action: '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
const video = await device.record({ action: 'stop', path: 'flow.mp4' })
console.log(video.frames, video.duration)
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