adb_list_devices
List all Android devices currently connected via ADB to identify available targets for remote management operations.
Instructions
List all connected ADB devices
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_list_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:175-186 (handler)Handler for adb_list_devices tool: executes 'adb devices' command and returns the stdout as text content.
case "adb_list_devices": { const { stdout } = await execAsync("adb devices"); return { content: [ { type: "text", text: stdout, }, ], }; } - src/index.ts:70-78 (registration)Tool registration in ListToolsRequestSchema, including name, description, and empty input schema.
{ name: "adb_list_devices", description: "List all connected ADB devices", inputSchema: { type: "object", properties: {}, required: [], }, },