FastestMCP.Client.ToolResult (fastest_mcp v0.3.0)

Copy Markdown View Source

Stable, protocol-faithful result returned by FastestMCP.Client.call_tool_result/4.

Unlike the compatibility projection returned by FastestMCP.Client.call_tool/4, this struct preserves the complete validated wire result and distinguishes an absent structuredContent field from an explicitly returned JSON null.

Summary

Types

t()

@type t() :: %FastestMCP.Client.ToolResult{
  content: [map()],
  is_error: boolean(),
  meta: map() | nil,
  raw: map(),
  structured_content: term(),
  structured_content_present?: boolean()
}