Table of Contents

TTMSMCPPromptArgument Class

One value a prompt asks for before it can be expanded.

API unit family: TMS.MCP.Prompts Inherits from: TCollectionItem

Syntax

TTMSMCPPromptArgument = class(TCollectionItem)

Remarks

Arguments are published with the prompt so a client knows what to collect, and their declaration order is the order in which their values reach the handler. A client may ask for completion suggestions for an argument while its value is being typed, which the server answers only when it offers completions.

Properties

Name Description
Description Explanation of what should be supplied, shown by the client and read by a model deciding what to fill in. Left out of the descriptor when empty.
Name Key the client sends the value under when it asks for the prompt.
Required Whether the prompt refuses to expand unless a value is supplied for this argument.

Methods

Name Description
ToJSON Builds the descriptor published for this argument.

Used by