GetLockStateTool

class GetLockStateTool(context: Context) : McpTool

Reports whether the device is currently locked (KeyguardManager) and whether the screen is interactive (PowerManager.isInteractive).

No permissions required. Read-only.

Output keys: is_device_locked, is_keyguard_locked, is_screen_on.

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