MCP Apps Kit - v0.5.0
    Preparing search index...

    Function useOnToolInputPartial

    • 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.

      Parameters

      • handler: (input: Record<string, unknown>) => void

        Callback for partial input

      Returns void

      function StreamingInput() {
      const [partialInput, setPartialInput] = useState<Record<string, unknown>>({});

      useOnToolInputPartial((input) => {
      setPartialInput(input);
      });

      return <pre>{JSON.stringify(partialInput, null, 2)}</pre>;
      }