class ActionController::MCPServer::Prompt
inherits Reference
#
a controller method exposed as a prompt, see ActionController::MCP
Included modules
JSON::Serializable
YAML::Serializable
Extended modules
JSON::Schema
Constructors#
.new(name : String, description : Nil | String, path : String, arguments : Array(ActionController::MCPServer::PromptArgument), root : Bool = false)#
.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)#
Methods#
#to_mcp_json(json : JSON::Builder) : Nil#
the prompt definition as returned by prompts/list