Tool

data class Tool(val name: String, val title: String?, val description: String?, val inputSchema: Tool.Input, val outputSchema: Tool.Output?, val annotations: ToolAnnotations?)(source)

Definition for a tool the client can call.

Constructors

Link copied to clipboard
constructor(name: String, title: String?, description: String?, inputSchema: Tool.Input, outputSchema: Tool.Output?, annotations: ToolAnnotations?)

Types

Link copied to clipboard
data class Input(val properties: JsonObject = EmptyJsonObject, val required: List<String>? = null)
Link copied to clipboard
data class Output(val properties: JsonObject = EmptyJsonObject, val required: List<String>? = null)

Properties

Link copied to clipboard

Optional additional tool information.

Link copied to clipboard

A human-readable description of the tool.

Link copied to clipboard

A JSON object defining the expected parameters for the tool.

Link copied to clipboard

The name of the tool.

Link copied to clipboard

An optional JSON object defining the expected output schema for the tool.

Link copied to clipboard

The title of the tool.