Table of Contents

TTMSMCPPrompt.PromptMethod Event

Code that turns the supplied argument values into the conversation this prompt stands for.

API unit family: TMS.MCP.Prompts Declaring type: TTMSMCPPrompt

Syntax

PromptMethod: TTMSMCPPromptMethod;

Remarks

Required: expanding a prompt without a handler raises an internal error, code -32603, and the collection refuses to register one. It is deliberately not published, because code cannot be stored in a form file; assign it at run time.

Parameters

Name Description
Args Values for the declared arguments, in declaration order rather than by name. Every value arrives as text, and an argument the client left out arrives empty, so check before using an optional one.

Returns

A newly created collection of messages, whose ownership passes to the caller. Build a fresh collection on every call and never hand back one that is kept elsewhere; returning nil is tolerated and yields an empty conversation.