Helper module used to build TextResourceContents structure.
(MCP protocol: 2025-11-25)
Short example:
%TextResourceContents{}
|> TextResourceContents.uri("file:///logs/app.log")
|> TextResourceContents.text("INFO App started")
|> TextResourceContents.mime_type("text/plain")
|> TextResourceContents.build()Result:
%{
text: "INFO App started",
uri: "file:///logs/app.log",
mimeType: "text/plain"
}Specification: TextResourceContents
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
uri | uri/2 | string | yes |
text | text/2 | string | yes |
mimeType | mime_type/2 | string | no |
_meta | _meta/2 | map | no |