class

ActionController::MCPServer::Toolbox

Inherits YAML::Serializable < JSON::Serializable < Reference < Object

a controller exposed as a group of tools and prompts

Constructors

new(name : String, controller : String, description : Nil | String, tools : Array(ActionController::MCPServer::Tool) = [] of Tool, prompts : Array(ActionController::MCPServer::Prompt) = [] of Prompt, icons : Nil | Array(JSON::Any) = nil)
Source
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

controller
Source
description
Source
icons

the controller's icons, src as written, see Icons

Source
name
Source
openable?

true if there is anything to add when the toolbox is opened

Source
prompts
Source
toolbox_prompts

the prompts added when the toolbox is opened

Source
toolbox_tools

the tools added when the toolbox is opened

Source
tools
Source