import { useToolResult } from "moonpeak";
useToolResult<Out>(): CallToolResult<Out> | undefinedThe raw CallToolResult: content, structuredContent, isError and _meta.
Example
const result = useToolResult();
const meta = result?._meta;Works in
Every MCP Apps host: ChatGPT, Claude, VS Code, Goose and the moonpeak inspector.
See all hooks in Runtime APIs.