MCP.Protocol.Types.ResourceContents (MCP Elixir SDK v1.1.0)

Copy Markdown View Source

Contents of a resource, returned by resources/read.

Either text or blob will be set, not both.

Summary

Types

t()

@type t() :: %MCP.Protocol.Types.ResourceContents{
  blob: String.t() | nil,
  meta: map() | nil,
  mime_type: String.t() | nil,
  text: String.t() | nil,
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()