JustAMCPPrompt
Inherits: RefCounted < Object
Inherited By: JustAMCPPromptBlaziumContext, JustAMCPPromptBlaziumWorkflow, JustAMCPPromptEditorState, JustAMCPPromptProjectInfo
Base class for prompts exposed through the MCP prompt API.
Description
JustAMCPPrompt defines the prompt interface used by JustAMCPPromptExecutor. Subclasses provide a prompt schema, render prompt messages from arguments, and optionally provide completions for prompt argument values.
var prompt = JustAMCPPromptBlaziumContext.new()
print(prompt.get_name())
print(prompt.get_prompt())
Tutorials
Methods
complete(argument: Dictionary) |
|
get_messages(args: Dictionary) |
|
get_name() const |
|
get_prompt() const |
Method Descriptions
Dictionary complete(argument: Dictionary) 🔗
Returns completion suggestions for one prompt argument. The argument dictionary follows the MCP completion request shape and usually contains the argument name and current value.
Dictionary get_messages(args: Dictionary) 🔗
Renders this prompt with args and returns an MCP-compatible prompt result dictionary containing message content or an error.
Returns the stable prompt name used by JustAMCPPromptExecutor.get_prompt() and MCP prompt references.
Dictionary get_prompt() const 🔗
Returns this prompt's MCP schema dictionary, including its name, description, and accepted arguments.