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;
__classmethod TTMSMCPToolBuilderClass __fastcall ExecuteCallback(const Tms::Mcp::Helpers::_di_TTMSMCPMethod ACallback);
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. |