Tool
@Serializable
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
Schema for the tool's input parameters.
Link copied to clipboard
The stack trace at the time of the registration.