Table of Contents

TTMSMCPPrompt.ToJSON Method

Builds the descriptor published for this prompt in a listing.

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

Syntax

function ToJSON: TJSONValue;

Remarks

Icons are only included when the stored text parses into an array; anything else is discarded silently so a malformed value cannot break the listing.

Returns

A new object carrying the name and, when they have been set, the title, the description, the argument descriptors and the icons. The caller owns the returned object.