import { useToolOutput } from "moonpeak";
useToolOutput<Out>(): Out | undefinedJust the structured content your handler returned.
Example
const output = useToolOutput<{ phase: string }>();Works in
Every MCP Apps host: ChatGPT, Claude, VS Code, Goose and the moonpeak inspector.
See all hooks in Runtime APIs.