class
ActionController::MCPServer::Prompt
- ActionController::MCPServer::Prompt
- Reference
- Object
Overview
a controller method exposed as a prompt, see ActionController::MCP
Included Modules
- JSON::Serializable
- YAML::Serializable
Extended Modules
- JSON::Schema
Defined in:
action-controller/mcp/description.crConstructors
- .new(name : String, description : Nil | String, path : String, arguments : Array(ActionController::MCPServer::PromptArgument), root : Bool = false)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
- #arguments : Array(PromptArgument)
- #description : String | Nil
- #name : String
-
#path : String
the internal route that renders the prompt
-
#root? : Bool
always available, without opening the toolbox
-
#to_mcp_json(json : JSON::Builder) : Nil
the prompt definition as returned by
prompts/list
Constructor Detail
def self.new(name : String, description : Nil | String, path : String, arguments : Array(ActionController::MCPServer::PromptArgument), root : Bool = false)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#