Helper module used to build ImageContent structure.
(MCP protocol: 2025-11-25)
Short example:
%ImageContent{}
|> ImageContent.data("iVBORw0KGgoAAAANSUhEUg==")
|> ImageContent.mime_type("image/png")
|> ImageContent.build()Result:
%{data: "iVBORw0KGgoAAAANSUhEUg==", type: "image", mimeType: "image/png"}Specification: ImageContent
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
data | data/2 | string | yes |
mimeType | mime_type/2 | string | yes |
_meta | _meta/2 | map | no |
annotations | annotations/2 | OzMcp.Structs.Annotations.t/0 | no |
Summary
Types
@type t() :: %OzMcp.Structs.ImageContent{ _meta: map() | nil, annotations: OzMcp.Structs.Annotations.t() | nil, data: String.t(), mimeType: String.t() }