Boot emulator
boot_emulatorStarts an Android Virtual Device by name, waits for full boot, and returns its device serial for use with later adb commands.
Instructions
Boot an AVD by name and return its device serial (e.g. emulator-5554). Launches the emulator detached so it outlives this call, and waits for full boot (sys.boot_completed) by default. Use the returned serial for later tools if you boot more than one device. Booting can take 30-120s on a cold start. If an emulator of this AVD is already running it returns that serial instead of launching a second one; no_snapshot and wipe_data then error, because they cannot apply to a running emulator (stop it with shutdown_emulator first).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"avd": "<avd>"
},
"name": "boot_emulator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avd | Yes | AVD name to boot (see list_avds). | |
| timeout_s | No | Boot timeout in seconds. Default 180. | |
| wipe_data | No | Factory-reset the AVD on this boot (-wipe-data). Default false. Use to start from a pristine device. | |
| no_snapshot | No | Cold boot without loading a saved snapshot. Default true when launching; if the AVD is already running it is ignored unless set true, which errors. | |
| wait_for_boot | No | Wait until fully booted before returning. Default true. |