import { useToolInput } from "moonpeak";
useToolInput<In>(): In | undefinedJust the tool input (or the partial input while it streams).
Example
const input = useToolInput<{ date?: string }>();Works in
Every MCP Apps host: ChatGPT, Claude, VS Code, Goose and the moonpeak inspector.
See all hooks in Runtime APIs.