class RubyLLM::MCP::Result

The result of calling an MCP tool. Text, files, and structured data each have their own reader.

result = linear.list_issues(query: "bug")
result.text        # => "Found 3 issues..."
result.structured  # => { "issues" => [...] }
result.attachments # => [#<RubyLLM::Attachment ...>]
result.meta        # => { "com.linear/request_id" => "..." }

In a chat, the result of a tool with a UI stays on its tool result message as Message#mcp_result, so your app can render the UI again.