GetSettingsTool

class GetSettingsTool(context: Context) : McpTool

Reads a snapshot of common device settings. Uses only install-time permissions declared by the module manifest (ACCESS_WIFI_STATE, and legacy BLUETOOTH on API <= 30); if either read fails (e.g. a host manifest merge removed the permission) the corresponding flag reports false.

Output keys: screen_brightness (0-255, -1 if unreadable), volume_ring, volume_media, volume_alarm, wifi_enabled, bluetooth_enabled, airplane_mode, auto_rotate.

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 outputSchema: Map<String, Any>
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