TTMSMCPClientServers.GetByToolName Method
Finds the server entry whose published tool catalog contains a tool with the given name.
API unit family: TMS.MCP.Client
Declaring type: TTMSMCPClientServers
Syntax
function GetByToolName(AToolName: string): TTMSMCPClientServerItem;
Remarks
Only entries that already received their catalog can match, so a lookup made before the handshake completes returns nil. When two servers publish the same tool name, the entry closest to the start of the collection wins.
Parameters
| Name | Description |
|---|---|
AToolName |
Exact, case-sensitive tool name to look for. |
Returns
The first entry publishing that tool, or nil when no entry does.