SettingsTools

Provider for device settings tools.

Exposes a read tool (GetSettingsTool) that is always available, plus write tools that are conditionally registered: SetBrightnessTool and SetVolumeTool require WRITE_SETTINGS (gated via Settings.System.canWrite), and ToggleWifiTool requires CHANGE_WIFI_STATE. The module itself reports no required permissions because the read surface needs none.

Functions

Link copied to clipboard
fun all(context: Context): List<McpTool>

All settings tools available for the current grant state: read tool always, write tools when permitted.

Link copied to clipboard

Always true — the read tool needs no permission.

Link copied to clipboard

No permissions required for the read surface; write tools self-gate in all.