Table of Contents

TTMSMCPToolBuilder.ExecuteCallback Method

Assigns the callback that runs when the tool is invoked, receiving its arguments by position in parameter declaration order.

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

Syntax

class function ExecuteCallback(const ACallback: TTMSMCPMethod): TTMSMCPToolBuilderClass;

Parameters

Name Description
ACallback The anonymous method to run. It must be assigned.

Returns

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

Exceptions

Exception Description
EJsonRpcException Raised with an invalid-parameters code when the callback is not assigned.