Helper module used to build TextContent structure.
(MCP protocol: 2025-11-25)
Short example:
%TextContent{}
|> TextContent.text("Hello, world!")
|> TextContent.build()Result:
%{type: "text", text: "Hello, world!"}Specification: TextContent
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
text | text/2 | string | yes |
_meta | _meta/2 | map | no |
annotations | annotations/2 | OzMcp.Structs.Annotations.t/0 | no |
Summary
Types
@type t() :: %OzMcp.Structs.TextContent{ _meta: map() | nil, annotations: OzMcp.Structs.Annotations.t() | nil, text: String.t() }