AppsTools

object AppsTools

Provider for the app tools (ListInstalledAppsTool, GetAppInfoTool, LaunchAppTool, GetAppUsageTool). Results may be subject to API 30+ package-visibility rules. GetAppUsageTool needs Usage access, a special access granted in Settings (check it with io.droidmcp.core.support.UsageAccess.isGranted); without it that tool returns an error and the others still work, so requiredPermissions stays empty.

Functions

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

All app tools, bound to context.

Link copied to clipboard

Always true; no permissions are needed.

Link copied to clipboard

None — these tools require no runtime permissions (Usage access is a Settings toggle).