ListPairedDevicesTool

Lists bonded (paired) Bluetooth devices. Requires BLUETOOTH_CONNECT (API 31+) and an enabled adapter; errors otherwise.

Output keys: count and devices, each entry having device_name, device_address, device_type (classic/le/dual/unknown), bond_state (bonded/bonding/none/unknown).

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