mcp-use TypeScript API
    Preparing search index...

    Type Alias UseWidgetResult<TProps, TState, TOutput, TMetadata, TToolInput>

    UseWidgetResult: UseWidgetResultBase<TState, TOutput, TMetadata, TToolInput> & (
        | { isPending: true; props: Partial<TProps> }
        | { isPending: false; props: TProps }
    )

    Common v1 useWidget() return surface. isPending narrows props exactly as it did in v1, so unchanged widgets can safely render required props.

    Type Parameters

    Use focused native v2 hooks. Removed in mcp-use v3.