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, title : Nil | String = nil, icons : Nil | Array(JSON::Any) = nil) #

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

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

[View source]

Instance Method Detail

def arguments : Array(PromptArgument) #

[View source]
def description : String | Nil #

[View source]
def icons : Array(JSON::Any) | Nil #

icons, src as written, see Icons


[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 title : String | Nil #

the display name


[View source]
def to_mcp_json(json : JSON::Builder, host : String | Nil = nil, bound : Hash(String, String) | Nil = nil) : Nil #

the prompt definition as returned by prompts/list, host resolves icon paths


[View source]