list_avds
Retrieve all available Android Virtual Devices (AVDs) for development and testing purposes.
Instructions
List all available Android Virtual Devices (AVDs)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/espresso_mcp/server.py:24-30 (handler)The main handler function for the 'list_avds' tool, decorated with @mcp.tool() for registration in FastMCP. It runs 'emulator -list-avds' via subprocess and returns the list of AVDs.@mcp.tool() def list_avds() -> list: """List all available Android Virtual Devices (AVDs)""" result = subprocess.run(["emulator", "-list-avds"], capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"Error listing AVDs: {result.stderr}") return result.stdout.splitlines()