Icon

An icon for display in user interfaces. Used by Implementation, Tool (and other definitions) per the MCP spec's icon shape: a required src and optional mimeType, sizes, and theme ("light"|"dark").

Members

Functions

dup
Icon dup()

Deep-copy this icon. Scalar and Nullable fields copy by value; the sizes slice is duplicated so the copy does not alias the original.

Variables

mimeType
Nullable!string mimeType;

optional MIME type, e.g. "image/png"

sizes
string[] sizes;

optional size strings, e.g. ["48x48", "96x96"]

src
string src;

URI or data: URL of the icon

theme
Nullable!string theme;

optional theme preference, "light" or "dark"