class

MCProtocol::Tool

Inherits JSON::Serializable < Reference < Object

Definition for a tool the client can call.

Constructors

new(inputSchema : ToolInputSchema, name : String, description : String | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

A human-readable description of the tool.

Source
inputSchema

A JSON Schema object defining the expected parameters for the tool.

Source
name

The name of the tool.

Source