Table of Contents

TTMSMCPContent Class

Builds the content items that make up a tool result. Every entry point is a class function, so no instance is needed.

API unit family: TMS.MCP.Tools

Syntax

TTMSMCPContent = class

Methods

Name Description
ContentArray 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.
ResourceLink Builds a resource_link content item, which points the client at a resource it can read separately instead of embedding the data in the result. Optional members are only added when the matching argument is not empty.
Text Builds a text content item, the plain-text result a client shows or feeds back to the model.

Used by