Vercel Labs updates @ui-sdk/core so agents can navigate hidden UI and validate actions
AI builders using @ui-sdk/core can now run multi-step agent tasks across closed tabs, collapsed sections, and paginated lists in a single call with stricter input validation.
- Hidden UI access
- Auto-opens closed tabs, sections, and pages unless data-agent-confirm is set
- Call validation
- Checks full act call shape first and refuses out-of-range numbers
- Read-only checks
- New expect step verifies values, checked states, or row text without edits
- Large list queries
- Reports counts over 10 items and reads past the first 50 items
- Memory fixes
- Releases closed submenus and unmounted popover content from memory
According to the release notes, agent steps in @ui-sdk/core now locate components inside other tabs, paginated views, closed sections, or collapsibles and open them automatically, except when protected by data-agent-confirm. The act command validates the full call structure before running any step, refuses out-of-range numbers instead of clamping them, and adds an expect step that checks values or row text without modifying them.
Builders can also pass closed: true to query to read other tabs and closed sections in one call, while lists with more than 10 items report their count and support reading past the first 50 items. The update exposes agentTools on the bridge as agent.tools and fixes memory retention in closed submenus and unmounted popovers.
Developer Tools
The release notes also detail stricter visibility and confirmation rules. Text inside data-agent-hidden no longer names a component or section, and fields hidden since mounting are excluded from call values. In web components, placing data-agent-confirm on a trigger or other part with no value prompts the user before any step runs on its component.
Patch updates address packaging and runtime compatibility. The library now exports SlotProps, Named, BaseSlotProps, Feature, and Listener so downstream packages can emit declarations without a TS2742 error. Toasts also now work in environments without ResizeObserver, such as jsdom without a polyfill, measuring height on mount and content changes instead of on resize.