struct

MCP::Protocol::Tool::Input

Inherits JSON::Serializable < Struct < Value < Object

Constructors

from(t : T.class) : self forall T

Generate a Tool::Input from a Crystal type using json-schema introspection. The type must include JSON::Serializable.

Source
new(properties : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, required : Nil | Array(String) = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

properties
Source
required
Source