kill_emulator
Terminate a specific Android emulator by providing its name to manage resources or resolve conflicts effectively.
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 handler function for the 'kill_emulator' tool, registered using the @mcp.tool() decorator. It runs an 'adb emu kill' command on the specified emulator_name to terminate the emulator process.@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."
- src/espresso_mcp/server.py:56-56 (registration)The @mcp.tool() decorator registers the kill_emulator function as an MCP tool, automatically using the function name as the tool name.@mcp.tool()