# `OzMcp.Structs.ImageContent`
[🔗](https://github.com/oz-elixir/oz_mcp/blob/v0.9.0/lib/oz_mcp/structs/image_content.ex#L1)

Helper module used to build `ImageContent` structure.

_(MCP protocol: 2025-11-25)_

## Short example:

```elixir
%ImageContent{}
  |> ImageContent.data("iVBORw0KGgoAAAANSUhEUg==")
  |> ImageContent.mime_type("image/png")
  |> ImageContent.build()
```

Result:

```elixir
%{data: "iVBORw0KGgoAAAANSUhEUg==", type: "image", mimeType: "image/png"}
```

Specification: [ImageContent](https://modelcontextprotocol.io/specification/2025-11-25/schema#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` | `t:OzMcp.Structs.Annotations.t/0` | no |

# `t`

```elixir
@type t() :: %OzMcp.Structs.ImageContent{
  _meta: map() | nil,
  annotations: OzMcp.Structs.Annotations.t() | nil,
  data: String.t(),
  mimeType: String.t()
}
```

# `annotations`

```elixir
@spec annotations(t(), OzMcp.Structs.Annotations.t() | nil) :: t()
```

# `build`

```elixir
@spec build(t()) :: map()
```

# `data`

```elixir
@spec data(t(), String.t()) :: t()
```

# `mime_type`

```elixir
@spec mime_type(t(), String.t()) :: t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
