ToolCallRequest

data class ToolCallRequest(val toolName: String, val arguments: Map<String, Any>, val annotations: ToolAnnotations, val clientLabel: String?)

A tool call waiting for the host's approval. See DroidMcp.Builder.confirmToolCalls.

Constructors

Link copied to clipboard
constructor(toolName: String, arguments: Map<String, Any>, annotations: ToolAnnotations, clientLabel: String?)

Properties

Link copied to clipboard

The tool's hints, e.g. to phrase the prompt ("send", "delete", …).

Link copied to clipboard

The arguments it will receive (already converted from JSON).

Link copied to clipboard

Which HTTP client asked (the pairing label, or "primary" for the main token); null for in-process calls and for servers without auth.

Link copied to clipboard

The tool about to run.