adb_mirror_start
Start live screen mirroring for an Android device using scrcpy, with optional windowed or headless mode and local 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_mirror_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| maxFps | No | Maximum frame rate (1-120, default 30) | |
| record | No | Record to a local file path (e.g., 'mirror.mp4') | |
| 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) | |
| headless | No | No-display mode — useful with recording. Omits the scrcpy window. | |
| stayAwake | No | Keep device awake while mirroring | |
| turnScreenOff | No | Turn device screen off during mirroring (saves battery) |