GetNfcStatusTool

class GetNfcStatusTool(context: Context) : McpTool

Reports whether NFC hardware is present and currently enabled.

Reads the default NfcAdapter; requires no runtime permission (the manifest declares android.permission.NFC, which is install-time). Read-only.

Output keys: available (adapter present), enabled (NFC turned on).

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult