Package-level declarations

Types

Link copied to clipboard
class GetSettingsTool(context: Context) : McpTool

Reads a snapshot of common device settings. No permissions required.

Link copied to clipboard

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.

Link copied to clipboard

Provider for device settings tools.

Link copied to clipboard
class SetVolumeTool(context: Context) : McpTool

Sets the volume of an audio stream (media, ring, alarm, or notification; default media), clamping the level to the stream's max. The underlying android.media.AudioManager call needs no permission, but SettingsTools only registers this tool when WRITE_SETTINGS is granted.

Link copied to clipboard
class ToggleWifiTool(context: Context) : McpTool

Toggles WiFi on/off. Requires CHANGE_WIFI_STATE. On API 29+ apps cannot toggle WiFi directly, so this opens the system WiFi settings panel instead of changing state.