Field Notes
    Preparing search index...

    Function useToolOptions

    • [options, setOptions] for the named tool — re-renders when the tool's options change. Returns null for options if the tool is not registered or does not expose options.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • toolName: string

      Returns [options: T | null, setOptions: (partial: Partial<T>) => void]