cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::protocol::Icon Struct Reference

Icon descriptor used by tools, resources, resource templates, and prompts. More...

#include <types.hpp>

Public Member Functions

Iconwith_mime_type (std::string value) &
 Sets the optional MIME type on an lvalue icon.
 
Icon && with_mime_type (std::string value) &&
 Sets the optional MIME type while preserving fluent temporary use.
 
Iconwith_sizes (std::vector< std::string > values) &
 Sets optional size hints on an lvalue icon.
 
Icon && with_sizes (std::vector< std::string > values) &&
 Sets optional size hints while preserving fluent temporary use.
 
Iconwith_theme (IconTheme value) &
 Sets the optional theme on an lvalue icon.
 
Icon && with_theme (IconTheme value) &&
 Sets the optional theme while preserving fluent temporary use.
 

Static Public Member Functions

static Icon from_src (std::string value)
 Creates an icon with the required source field.
 

Public Attributes

std::string src
 Required icon source URI or data URI.
 
std::string mime_type
 Optional MIME type such as image/png or image/svg+xml.
 
std::vector< std::string > sizes
 Optional size hints such as 16x16, 32x32, or any.
 
std::optional< IconThemetheme
 Optional theme specialization.
 

Detailed Description

Icon descriptor used by tools, resources, resource templates, and prompts.


The documentation for this struct was generated from the following file: