FlashlightTools

Provider for flashlight/torch tools: ToggleFlashlightTool and SetFlashlightBrightnessTool.

Torch control (android.hardware.camera2.CameraManager.setTorchMode) needs no runtime permission — it's a distinct, permission-free API precisely so apps can control the flashlight without requesting full CAMERA access.

Functions

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

All flashlight tools bound to context.

Link copied to clipboard

Always true; see requiredPermissions.

Link copied to clipboard

No permissions required — see object KDoc.