Early bird – $50 off ProGet Pro
Blog

UI SDK

What Is Agent-Ready UI? Dashboards AI Agents Can Operate

Agent-ready UI means an AI agent can read your interface as named controls and change it through the same API a click uses. Definition, checklist and examples.

· Raycanvas

Agent-ready UI is an interface an AI agent can operate as reliably as a person: it reads the screen as a list of named controls with their current state, changes them through the same component API a click uses, and must ask a person before anything risky. It is about operating an app, not just reading a website.

Skip the build: Agent kit is a free, MIT-licensed shadcn/ui registry item (code, not a visual component) that covers the agent side of this checklist: a UI SDK bridge that makes data-agent-confirm controls wait for a person, a chat hook that logs each step in plain words and rings the control it changed, and an /api/agent route for the model. Add it with npx shadcn@latest add @panelo/agent-kit (registry setup), then change anything: the source is yours.

What does "agent-ready" actually mean?

The phrase gets used loosely. Search for it and you find chat widgets, voice kits and SEO checklists for content sites. Those are useful, but they answer a different question.

We use a narrower definition. A UI is agent-ready when an agent can do three things without guessing:

  1. Read it. See every control that matters, with a stable name, its current value and what can be done to it.
  2. Operate it. Change those controls through the app's real logic, so validation, side effects and analytics run exactly as they would for a click.
  3. Stay inside limits. Be stopped, or made to ask, before anything the person would not want done silently.

A chat box on top of a dashboard is not agent-ready if the chat can only describe the dashboard. It becomes agent-ready when the chat can flip the switch it is talking about.

Why does this matter now?

Agents are already using web apps, whether you plan for it or not. They arrive in three ways: browser agents that read and click pages, assistants built into your own app, and browsers that expose page tools to a built-in model. Chrome opened an origin trial for WebMCP in Chrome 149, a proposal that lets pages declare tools for agents instead of leaving them to guess.

For apps (dashboards, admin panels, settings pages) the hard part is not discovery. It is acting correctly on dense screens full of tables, menus and toggles.

How do AI agents operate a UI today?

There are four broad approaches. Each has a place.

Approach How the agent sees the UI How it acts Trade-off
Screenshots and coordinates (computer use) Pixels Mouse and keyboard events at positions Works on anything; slowest and least precise
Browser tools on the accessibility tree The page's accessibility tree Click and type on elements No app changes needed; a lot of text to read on dense screens
Hand-written tools Whatever your tool returns Your functions (setFilter, deleteRow) Precise; every control needs its own tool, and tools drift from the UI
A component bridge Structured component state Each component's own API Precise with no per-control tools; needs components built for it

The last row is what Vercel's UI SDK does. Its bridge lists components with their labels, state and available actions, and runs actions through each component's API. We explain the library in Vercel's UI SDK explained.

How much difference does it make? UI SDK's repo includes a vendor-run benchmark of one task on a project settings screen. On React, Base UI with browser tools took 17 tool calls, 291.7k tokens and $0.139. The UI SDK screen with its agent tools took 7 calls, 69.5k tokens and $0.044. The same UI SDK screen driven through browser tools cost about as much as Base UI, so the gain comes from the structured tools, not from the components being faster. Treat it as one data point, not a general law.

What makes a UI agent-ready? A checklist

You can apply most of this with any stack. The UI SDK attribute names are shown where they exist.

1. Every control has a real accessible name

Agents find controls by name. An icon button with no aria-label, two inputs both called "Name", or a switch whose label is a nearby <span> all force the agent to guess. This is the same work as screen-reader accessibility, and it pays off twice.

2. State is readable, not inferred

The agent should not have to work out whether a toggle is on from its colour. Expose state the platform understands (aria-checked, aria-pressed, aria-selected, real values). A component bridge goes further and hands the agent checked: true directly.

3. Actions go through the same path as a click

If an agent changes a filter by editing the DOM, your app state and the screen disagree. An agent-ready UI routes agent changes through the component's API and the same change callbacks a person triggers. In UI SDK, those callbacks receive details.source === "agent", so you can log or cancel them.

4. Risky controls are marked, and marked with words

"Are you sure?" is not enough when the agent asks on someone's behalf. Mark destructive or costly controls with a sentence that says what happens. UI SDK's data-agent-confirm="Charges $20 to your card for 1,000 credits" shows up in the snapshot, so the agent knows in advance, and the step waits until your allow callback gets the person's answer. Without an allow callback, the step is refused.

5. Sensitive regions can be hidden or redacted

Recovery codes, tax IDs and API keys should not end up in a model's context. UI SDK's data-agent-hidden removes a region from the agent's view; data-agent-secret shows "[redacted]" once a field is filled. Password, card and one-time-code fields are treated as secret automatically.

6. The server still enforces permissions

Front-end checks guide the agent. They do not secure your data. Anything that writes or deletes must still check the user's permissions on the server, exactly as it would for a click.

7. The person can see what the agent did

Show each step in plain words ("Set Date range to Last 7 days"), highlight the control that changed, and make undo easy where you can. Agents that act invisibly erode trust even when they are right.

Panelo UI's free agent kit does the first two for UI SDK pages: its chat hook writes each step as a sentence and briefly rings the control the agent touched. Undo is still yours to design.

Is agent-ready UI the same as an agent-friendly website?

Not quite. For content sites, being agent-friendly mostly means being readable: clean HTML, an llms.txt file, structured data, fast pages.

Apps need more, because the agent has to change things. An admin panel can be perfectly readable and still be painful to operate if every action hides behind an unlabeled icon menu. Agent-ready UI is the app-side half of the same idea.

How is agent-ready UI different from generative UI?

Generative UI means the model produces interface on the fly, such as a weather card rendered inside a chat. Agent-ready UI is the opposite direction: the interface already exists and the model operates it. Many products will want both. A chat built with AI Elements can sit next to a dashboard built from agent-ready components, and the chat drives the dashboard.

What does an agent-ready dashboard look like in practice?

A small example: an automation dashboard with a list of workflows, each with a pause switch and a delete button.

<Switch aria-label={`Pause ${workflow.name}`} checked={paused} onCheckedChange={setPaused}>
  <SwitchThumb />
</Switch>

<Button
  data-agent-confirm={`Delete the ${workflow.name} workflow`}
  onClick={() => deleteWorkflow(workflow.id)}
>
  Delete
</Button>

A person asks the assistant, "Pause Lead Enrichment and delete the Twitter monitor." The agent reads the snapshot, sees the switch labelled "Pause Lead Enrichment" and the delete button with its confirm sentence, flips the switch directly, and pauses on the delete until the person approves. That is close to what our live agent demo does.

For the build steps, follow the @ui-sdk/react tutorial. To expose the same tools to a browser's own agent, see WebMCP in React with UI SDK.

Do you need a special library to be agent-ready?

No. Points 1, 2, 6 and 7 of the checklist apply to any React app, and a set of hand-written tools can cover a small app well. A component bridge mainly saves you from writing and maintaining a tool per control as the app grows.

The honest caveat: Vercel's UI SDK, the main library built around this idea, is in beta, so its APIs may change. If that is a blocker, start with accessible names, clear state and server-side checks. You lose nothing, and you are ready to add a bridge later.

Where does Panelo UI fit?

Panelo UI is a shadcn/ui registry of dashboard components, charts and pages built on Vercel's UI SDK, designed to meet this checklist out of the box. Controls are labelled, destructive actions carry confirm marks, and the free agent-kit adds the bridge, an approval prompt and a chat route. Browse the components or see the templates launching December 1, 2026.

Get this working in your app

Add the Panelo registry to components.json:

"registries": {
  "@panelo": "https://www.paneloui.com/r/{name}.json"
}

Then install the kit:

npx shadcn@latest add @panelo/agent-kit

You get components/panelo-ui/lib/agent.ts (the bridge), components/panelo-ui/hooks/use-agent-chat.ts (the useAgentChat hook) and app/api/agent/route.ts, plus the panelo-theme tokens. Set GROQ_API_KEY on your server, a free key from console.groq.com; nothing else in the kit needs a key. The bridge sees UI SDK components only, so pair it with UI SDK controls or Panelo blocks. In a client component, call useAgentChat(), render its entries (messages and a plain-words log of each step) and its confirm question, and pass the person's text to send().

Against the checklist: the kit handles the waiting half of point 4 and the step log and highlight from point 7, and its route tells the model that page text is data, never instructions. Marking controls, names, state, hidden regions and server checks stay in your components and your API.

See it live: the agent demo is a dashboard an AI agent operates through Vercel's UI SDK, and it asks before anything destructive.

The Pro step:

  • AI Automation Dashboard is the full screen from that demo: an AI workflow-automation dashboard with stat cards, an active-workflows table, a templates carousel and an Ask AI assistant panel.
  • AI Workflow Builder is an AI workflow builder with a chat-driven automation thread, workflow preview tabs, a node-graph editor and a sample output table.

Panelo Pro is a one-time payment with no subscription: see plans.

FAQ

What is agent-ready UI in one sentence?

An interface an AI agent can read as named controls, operate through the same API a click uses, and that makes the agent ask a person before risky actions.

Is agent-ready UI just accessibility?

Accessibility is the foundation, since agents also find controls by accessible name. Agent-ready UI adds structured state, actions routed through the component API, and explicit confirmation marks for risky controls.

Do browser agents need my app to be agent-ready?

No, they can work from the accessibility tree or screenshots. But a well-labelled UI makes them more accurate, and structured tools make them use far fewer steps.

How do I stop an agent from deleting data?

Mark the control so the agent must ask a person, show the effect in words, and still check permissions on the server. Never rely on front-end confirmation alone.

Is agent-ready UI only for chat assistants?

No. The same UI can be operated by your in-app assistant, a browser agent through WebMCP, or automated tests, because they all use the same named controls.

Sources