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

class function StructuredExecuteCallback(const ACallback: TTMSMCPDynamicStructuredMethod): TTMSMCPToolBuilderClass;

Parameters

Name Description
ACallback The anonymous method to run.

Returns

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