adb_mirror_start
Start live screen mirroring for an Android device using scrcpy. Supports windowed and headless modes with adjustable FPS, bitrate, and recording.
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'). AK2 fix: format-validated at schema layer. | 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) |