McpServer.Tool.Meta (HTTP MCP Server v0.8.0)
View SourceMetadata container for tool UI configuration.
Wraps McpServer.Tool.Meta.UI and is serialized as the _meta field on tools.
Fields
ui- UI configuration (McpServer.Tool.Meta.UI)
Examples
iex> McpServer.Tool.Meta.new(ui: McpServer.Tool.Meta.UI.new(resource_uri: "ui://dashboard"))
%McpServer.Tool.Meta{ui: %McpServer.Tool.Meta.UI{resource_uri: "ui://dashboard", visibility: [:model, :app]}}
iex> McpServer.Tool.Meta.new()
%McpServer.Tool.Meta{ui: nil}
Summary
Functions
Creates a new Tool.Meta struct.
Types
@type t() :: %McpServer.Tool.Meta{ui: McpServer.Tool.Meta.UI.t() | nil}
Functions
Creates a new Tool.Meta struct.
Parameters
opts- Keyword list of options::ui-McpServer.Tool.Meta.UIstruct (optional)