GetScreenStateTool

Reports current screen state: interactivity, rotation, brightness, and keyguard lock. No permissions required. brightness is the raw Settings.System.SCREEN_BRIGHTNESS value (0–255), or -1 if it could not be read (e.g. adaptive brightness).

Output map: is_screen_on (Boolean), rotation (Int degrees: 0/90/180/270), brightness (Int), is_locked (Boolean).

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