GetLightLevelTool

Reads the TYPE_LIGHT ambient-light sensor (illuminance in lux). No permissions. With duration_ms (1-5000) it collects a series of samples; otherwise a single reading. See readSensor. Output: latest lux, accuracy, timestamp, plus a readings list of {lux,timestamp}. Returns ToolResult.error when the device has no light sensor.

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