start_emulator
Launch an Android emulator by specifying its name to begin testing mobile applications in a virtual environment.
Instructions
Start an Android Emulator by name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emulator_name | Yes |
Implementation Reference
- src/espresso_mcp/server.py:45-53 (handler)Handler function decorated with @mcp.tool(), which registers the tool and implements starting an Android emulator using subprocess.Popen with the emulator -avd command.@mcp.tool() def start_emulator(emulator_name: str) -> str: """Start an Android Emulator by name""" result = subprocess.Popen( ["emulator", "-avd", emulator_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) return f"Emulator '{emulator_name}' is starting."