class ActionController::MCPServer::Prompt

Overview

a controller method exposed as a prompt, see ActionController::MCP

Included Modules

Extended Modules

Defined in:

action-controller/mcp/description.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : Nil | String, path : String, arguments : Array(ActionController::MCPServer::PromptArgument), root : Bool = false) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def arguments : Array(PromptArgument) #

[View source]
def description : String | Nil #

[View source]
def name : String #

[View source]
def path : String #

the internal route that renders the prompt


[View source]
def root? : Bool #

always available, without opening the toolbox


[View source]
def to_mcp_json(json : JSON::Builder) : Nil #

the prompt definition as returned by prompts/list


[View source]