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.
new(pull : JSON::PullParser)
Sourcenew(properties : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, required : Nil | Array(String) = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
properties
Sourcerequired
Source