LocationTools

Provider for the location tools: GetCurrentLocationTool and GetLocationAddressTool. Note that only the current-location tool gates on these permissions; reverse geocoding needs network access, not a location permission.

Functions

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

All location McpTools bound to context.

Link copied to clipboard

True when at least one of fine or coarse location is granted. PermissionHelper.hasPermissions itself is all-of (correct for modules needing every listed permission), so "either is sufficient" is implemented here by checking each permission individually — otherwise a coarse-only grant (Android 12+ "Approximate location") would be wrongly reported as ungranted.

Link copied to clipboard

Location permissions; either fine or coarse is sufficient at runtime.