Tool

@Serializable
data class Tool(val name: String, val description: String, val inputSchema: Map<String, JsonElement>? = null, val annotations: WebMCP.Annotation? = null, val frameId: String, val backendNodeId: Int? = null, val stackTrace: Runtime.StackTrace? = null)

Definition of a tool that can be invoked.

Constructors

Link copied to clipboard
constructor(name: String, description: String, inputSchema: Map<String, JsonElement>? = null, annotations: WebMCP.Annotation? = null, frameId: String, backendNodeId: Int? = null, stackTrace: Runtime.StackTrace? = null)

Properties

Link copied to clipboard

Optional annotations for the tool.

Link copied to clipboard

Optional node ID for declarative tools.

Link copied to clipboard

Tool description.

Link copied to clipboard

Frame identifier associated with the tool registration.

Link copied to clipboard
val inputSchema: Map<String, JsonElement>?

Schema for the tool's input parameters.

Link copied to clipboard

Tool name.

Link copied to clipboard

The stack trace at the time of the registration.