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

# Function: useFormValidation()

> **useFormValidation**(): [`FormValidationContextValue`](/next/zh/api/genui/openui/core/interfaces/FormValidationContextValue.md) | `null`

读取最近的 OpenUI 表单校验上下文（如果存在）。

## Returns

[`FormValidationContextValue`](/next/zh/api/genui/openui/core/interfaces/FormValidationContextValue.md) | `null`
