TTMSMCPPromptArguments Class
The ordered set of arguments a prompt declares.
API unit family: TMS.MCP.Prompts
Inherits from: TOwnedCollection
Syntax
TTMSMCPPromptArguments = class(TOwnedCollection)
Remarks
The collection owns its arguments and frees them, so an argument obtained from it must never be freed by the caller. The order matters: it is both the order the arguments are published in and the order their values are passed to the handler.
Properties
| Name | Description |
|---|---|
| Items | Arguments in the collection, addressed by their position. |
Methods
| Name | Description |
|---|---|
| Add | Appends an empty, optional argument and returns it so its properties can be filled in. |
| ToJSON | Builds the descriptor list published with the prompt. |