SetBrightnessTool

Sets screen brightness (0-255, clamped). Requires WRITE_SETTINGS; when not granted it launches the system grant screen and returns an error instead of writing.

Output keys on success: success (true), brightness (the clamped value 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