adb_list_devices
List all connected Android devices using ADB functionality for remote management, app control, and shell command execution.
Instructions
List all connected Android devices
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/device.ts:6-21 (handler)Core handler function for 'adb_list_devices' tool that lists connected Android devices using AdbClient and returns formatted success/error response.async listDevices() { try { const devices = await this.adbClient.getDevices(); return { success: true, data: devices, message: `Found ${devices.length} device(s)` }; } catch (error: any) { return { success: false, error: error.message, message: 'Failed to list devices' }; } }
- src/index.ts:433-434 (registration)Switch case in CallToolRequestSchema handler that registers and dispatches 'adb_list_devices' calls to DeviceTools.listDevices().case 'adb_list_devices': return await this.handleToolCall(this.deviceTools.listDevices());
- src/index.ts:52-59 (schema)Tool schema definition including name, description, and empty input schema (no parameters required).name: 'adb_list_devices', description: 'List all connected Android devices', inputSchema: { type: 'object', properties: {}, required: [], }, },