class
MCProtocol::Tool
- MCProtocol::Tool
- Reference
- Object
Overview
Definition for a tool the client can call.
Included Modules
- JSON::Serializable
Defined in:
mcprotocol/tool.crConstructors
- .new(inputSchema : ToolInputSchema, name : String, description : String | Nil = Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#description : String | Nil
A human-readable description of the tool.
-
#inputSchema : ToolInputSchema
A JSON Schema object defining the expected parameters for the tool.
-
#name : String
The name of the tool.
Constructor Detail
Instance Method Detail
def inputSchema : ToolInputSchema
#
A JSON Schema object defining the expected parameters for the tool.