The result of a tools/call — content blocks, optional structured content,
and the isError execution-error flag.
Summary
Functions
Tool execution error (isError: true) — visible to the model.
Successful result from content blocks, a binary, or a structured map.
Successful structured result. Includes a JSON-serialized text block alongside
structuredContent for backward compatibility, as the spec requires.
Types
@type t() :: %Noizu.MCP.Types.ToolResult{ content: [Noizu.MCP.Types.Content.t()], is_error: boolean(), meta: map() | nil, structured: map() | nil }
Functions
@spec error([Noizu.MCP.Types.Content.t()] | Noizu.MCP.Types.Content.t() | String.t()) :: t()
Tool execution error (isError: true) — visible to the model.
@spec ok([Noizu.MCP.Types.Content.t()] | Noizu.MCP.Types.Content.t() | String.t()) :: t()
Successful result from content blocks, a binary, or a structured map.
Successful structured result. Includes a JSON-serialized text block alongside
structuredContent for backward compatibility, as the spec requires.