Table of Contents

ITMSMCPIconAttribute Interface

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

API unit family: TMS.MCP.Attributes Extends: ITMSMCPCustomAttribute

Syntax

ITMSMCPIconAttribute = interface(ITMSMCPCustomAttribute)

Remarks

Unlike the other metadata attributes this one may be applied more than once to the same declaration; every occurrence is appended to the icon list published for the declaration.

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.

Methods

Name Description
GetMimeType Returns the media type of the icon.
GetSizes Returns the pixel sizes the icon is available in.
GetSrc Returns the location of the icon.