> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: useOpenUI()

> **useOpenUI**(): [`OpenUIContextValue`](/next/api/genui/openui/core/interfaces/OpenUIContextValue.md)

Access the full OpenUI context. Throws if used outside an
`OpenUiRenderer` tree.

## Returns

[`OpenUIContextValue`](/next/api/genui/openui/core/interfaces/OpenUIContextValue.md)
