Subscribe to partial/streaming tool input
Called when the host sends partial tool arguments during streaming. Useful for showing real-time input as the user types or as the model generates.
Callback for partial input
function StreamingInput() { const [partialInput, setPartialInput] = useState<Record<string, unknown>>({}); useOnToolInputPartial((input) => { setPartialInput(input); }); return <pre>{JSON.stringify(partialInput, null, 2)}</pre>;} Copy
function StreamingInput() { const [partialInput, setPartialInput] = useState<Record<string, unknown>>({}); useOnToolInputPartial((input) => { setPartialInput(input); }); return <pre>{JSON.stringify(partialInput, null, 2)}</pre>;}
Subscribe to partial/streaming tool input
Called when the host sends partial tool arguments during streaming. Useful for showing real-time input as the user types or as the model generates.