Field Notes
    Preparing search index...

    Function injectToolOptions

    • [options, setOptions] for the named tool — updates when the tool's options change. options is null if the tool is not registered or does not expose options. A Signal toolName is followed: the helper resubscribes to the new tool.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • toolName: string | Signal<string>

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