Skip to main content
Table of Contents

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

TMS.MCP.Tools.hppPascalC++
class function ContentArray(const AItems: array of TJSONObject): TJSONArray; static;
static System::Json::TJSONArray* __fastcall ContentArray(System::Json::TJSONObject* const *AItems, const System::NativeInt AItems_High);

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.