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

Helper module used to define the `ContentBlock` structure.

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

`ContentBlock` is a union type. Build one of the specific content
modules to use it as a `ContentBlock`.

## About specification

Specification: [ContentBlock](https://modelcontextprotocol.io/specification/2025-11-25/schema#contentblock)

```
ContentBlock:
  | TextContent
  | ImageContent
  | AudioContent
  | ResourceLink
  | EmbeddedResource
```

# `t`

```elixir
@type t() ::
  %OzMcp.Structs.TextContent{_meta: term(), annotations: term(), text: term()}
  | %OzMcp.Structs.ImageContent{
      _meta: term(),
      annotations: term(),
      data: term(),
      mimeType: term()
    }
  | %OzMcp.Structs.AudioContent{
      _meta: term(),
      annotations: term(),
      data: term(),
      mimeType: term()
    }
  | %OzMcp.Structs.ResourceLink{
      _meta: term(),
      annotations: term(),
      description: term(),
      icons: term(),
      mimeType: term(),
      name: term(),
      size: term(),
      title: term(),
      uri: term()
    }
  | %OzMcp.Structs.EmbeddedResource{
      _meta: term(),
      annotations: term(),
      resource: term()
    }
  | map()
```

---

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