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

Helper module used to build `TextContent` structure.

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

## Short example:

```elixir
%TextContent{}
  |> TextContent.text("Hello, world!")
  |> TextContent.build()
```

Result:

```elixir
%{type: "text", text: "Hello, world!"}
```

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

## Fields

| Field | Setter | Type | Required |
|---|---|---|---|
| `text` | `text/2` | string | yes |
| `_meta` | `_meta/2` | map | no |
| `annotations` | `annotations/2` | `t:OzMcp.Structs.Annotations.t/0` | no |

# `t`

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

# `annotations`

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

# `build`

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

# `text`

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

---

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