TTMSMCPContent.ContentArray Method
Collects content items into the JSON array a tool returns when its result is made up of more than one item, for example some text followed by a resource link.
API unit family: TMS.MCP.Tools
Declaring type: TTMSMCPContent
Syntax
class function ContentArray(const AItems: array of TJSONObject): TJSONArray; static;
Parameters
| Name | Description |
|---|---|
AItems |
The content items to collect. The array takes ownership of each item, so they must not be destroyed separately; destroying the array destroys them. |
Returns
A newly created JSON array owned by the caller.