Table of Contents

TTMSMCPToolBuilder.AddIcon Method

Adds an icon to the tool so a client can show it with an image. Call it repeatedly to publish the same icon in several sizes or formats.

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

Syntax

class function AddIcon(const ASrc: string; const AMimeType: string = ''; const ASizes: string = ''): TTMSMCPToolBuilderClass;

Parameters

Name Description
ASrc Location of the icon image, for example an HTTP URL or a data URI.
AMimeType Media type of the image, for example image/png. Omitted when empty.
ASizes Space-separated size specification, for example 48x48. Omitted when empty.

Returns

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