ToggleFlashlightTool

Turns the device torch (camera flash LED) on or off via CameraManager.setTorchMode.

No runtime permission needed (torch control is permission-free); requires a camera with FLASH_INFO_AVAILABLE.

Output map: status ("on"/"off") and enabled (the boolean applied).

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