Table of Contents

TTMSMCPIconAttribute Class

Supplies one icon a client may display for a tool, resource or prompt.

API unit family: TMS.MCP.Attributes Inherits from: TTMSMCPCustomAttribute Implements: ITMSMCPIconAttribute

Syntax

TTMSMCPIconAttribute = class(TTMSMCPCustomAttribute, ITMSMCPIconAttribute)

Remarks

This attribute may be applied several times to the same declaration; every occurrence adds one entry to the published icon list, which is how several sizes or formats of the same icon are offered.

Properties

Name Description
MimeType Media type of the icon, for example image/png. Empty when it was not supplied.
Sizes Pixel sizes the icon is available in, for example 16x16 32x32. Empty when it was not supplied.
Src Location of the icon, typically an absolute URL or a data URI.

Used by