class MCProtocol::Tool

Overview

Definition for a tool the client can call.

Included Modules

Defined in:

mcprotocol/tool.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(inputSchema : ToolInputSchema, name : String, description : String | Nil = Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def description : String | Nil #

A human-readable description of the tool.


[View source]
def inputSchema : ToolInputSchema #

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


[View source]
def name : String #

The name of the tool.


[View source]