adb_mirror_start
Start live screen mirroring of an Android device via scrcpy. Supports windowed or headless modes, with options for recording, frame rate, bitrate, and screen control.
Instructions
Start live screen mirroring for a device using scrcpy. Requires scrcpy installed and on PATH. Supports windowed (visual) and headless (no display) modes. One session per device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| headless | No | No-display mode — useful with recording. Omits the scrcpy window. | |
| maxFps | No | Maximum frame rate (1-120, default 30) | |
| bitrate | No | Video bitrate (e.g., '4M', '8M', '2M') | 4M |
| maxSize | No | Max dimension in pixels (0 = no limit, max 4096) | |
| record | No | Record to a local file path (e.g., 'mirror.mp4') | |
| stayAwake | No | Keep device awake while mirroring | |
| turnScreenOff | No | Turn device screen off during mirroring (saves battery) |