kill_emulator
Terminate a specific Android emulator by name to free system resources or stop unresponsive instances. This tool helps manage emulator processes in development environments.
Instructions
Kill a specific Android Emulator
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emulator_name | Yes |
Implementation Reference
- src/espresso_mcp/server.py:56-64 (handler)The implementation of the 'kill_emulator' tool. This handler function uses ADB to send an 'emu kill' command to the specified emulator device, terminating it. Registered via the @mcp.tool() decorator.@mcp.tool() def kill_emulator(emulator_name: str) -> str: """Kill a specific Android Emulator""" result = subprocess.run( ["adb", "-s", emulator_name, "emu", "kill"], capture_output=True, text=True ) if result.returncode != 0: raise RuntimeError(f"Error killing emulator '{emulator_name}': {result.stderr}") return f"Emulator '{emulator_name}' has been killed."