Skip to main content
Glama

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

Implementation Reference

  • 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."
  • The @mcp.tool() decorator registers the kill_emulator function as an MCP tool, automatically using the function name as the tool name.
    @mcp.tool()

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