TelephonyTools

Provider for the telephony tools: phone number, SIM info, network operator, and call state. The declared permissions gate the identity-bearing tools (GetPhoneNumberTool, GetSimInfoTool, and call state on API 31+); GetNetworkOperatorTool needs none. Each tool degrades gracefully (null fields) when its permission is absent rather than erroring.

Functions

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

All telephony McpTools bound to context.

Link copied to clipboard

True when requiredPermissions are granted.

Link copied to clipboard

Permissions backing the identity/state tools.