Skip to main content
Glama

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
NameRequiredDescriptionDefault
emulator_nameYes

Implementation Reference

  • 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."

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vs4vijay/espresso-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server