ListUsbDevicesTool

Lists currently connected USB devices from UsbManager.getDeviceList.

No permissions required. Returns an error if USB host mode is unsupported on the device. Read-only.

Output keys: count, devices (each with name, vendor_id, product_id, device_class, device_subclass, manufacturer, product, interface_count, has_permission).

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult