list_avds
Retrieve a list of available Android Virtual Devices for development and testing purposes.
Instructions
List available Android Virtual Devices
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/adb.ts:195-200 (handler)The actual implementation of the logic to retrieve the list of AVDs using the emulator tool.
async getAvds(): Promise<string[]> { const { stdout } = await execFileAsync(this.emulatorPath, ["-list-avds"], { timeout: 10_000, }); return stdout.split("\n").map((l) => l.trim()).filter(Boolean); } - src/index.ts:70-80 (registration)The MCP tool registration for 'list_avds'.
server.tool("list_avds", "List available Android Virtual Devices", {}, async () => { const avds = await adb.getAvds(); if (avds.length === 0) { return { content: [{ type: "text", text: "No AVDs found. Create one in Android Studio AVD Manager." }], }; } return { content: [{ type: "text", text: avds.join("\n") }] }; }); server.tool(