Skip to main content
Table of Contents

TTMSMCPToolBuilder.StructuredExecuteCallback Method

Assigns the callback that receives the arguments by name and returns a ready-made JSON object, used when the result must match a declared output schema.

API unit family: TMS.MCP.Tools Declaring type: TTMSMCPToolBuilder

Syntax

TMS.MCP.Tools.hppPascalC++
class function StructuredExecuteCallback(const ACallback: TTMSMCPDynamicStructuredMethod): TTMSMCPToolBuilderClass;
__classmethod TTMSMCPToolBuilderClass __fastcall StructuredExecuteCallback(const Tms::Mcp::Helpers::_di_TTMSMCPDynamicStructuredMethod ACallback);

Parameters

Name Description
ACallback The anonymous method to run.

Returns

The tool builder class, so the configuration can be chained.