ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias Icon

    An optionally-sized icon that can be displayed in a user interface.

    type Icon = {
        src: string;
        mimeType?: MediaType | null;
        sizes?: string[] | null;
        theme?: IconTheme | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    src: string

    A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a data: URI with Base64-encoded image data.

    Clients MUST accept only https: and data: URIs, MUST fetch without credentials, and MUST NOT follow redirects that change the scheme or origin.

    mimeType?: MediaType | null

    Optional MIME type override if the source MIME type is missing or generic.

    Omitted and null are equivalent and mean the source MIME type is used.

    sizes?: string[] | null

    Optional array of strings that specify sizes at which the icon can be used. Each string SHOULD be in WxH format (e.g., "48x48", "96x96") or "any" for scalable formats like SVG.

    If not provided, the Client SHOULD assume that the icon can be used at any size.

    Omitted and null are equivalent and mean no sizes are specified.

    theme?: IconTheme | null

    Optional theme this icon is designed for.

    Omitted and null are equivalent and mean the icon is not theme-specific.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility