CI4A: Semantic Component Interfaces for Agents Empowering Web Automation

Zhi Qiu, Jiazheng Sun, Chenxiao Xia, Jun Zheng, Xin PengNeurIPS 2026

TL;DR

Why do we force AI agents to click through calendar pop-ups and parse messy HTML like a human squinting at a screen? Instead of training bigger models to survive human-centric interfaces, this paper flips the script with CI4A—a protocol that turns standard UI components into clean, callable tools for agents. Think of it as "ARIA for AI," boosting web automation success rates to 86.3% while cutting the required steps in half.

What Problem Does This Paper Address?

Large Language Models (LLMs) are fantastic at high-level planning, yet they routinely trip over basic web tasks like picking a date or navigating nested menus.

The root cause is a fundamental mismatch in how humans and AIs experience the web. Websites are built for creatures with continuous visual feedback and millisecond motor control. To save screen space, designers use progressive disclosure—hiding options inside lazy-loaded dropdowns and collapsible panels.

Agents, however, operate in a slow, discrete "Observe-Reason-Act" loop. When forced to interact via visual coordinates or raw HTML/DOM trees, an agent has to translate a simple goal ("set date to Dec 31, 2025") into a fragile chain of micro-actions: click input, click previous month, find "31", click "OK". One misclick or hidden DOM state, and the whole task derails. Rather than throwing more Reinforcement Learning at agents to make them better clickers, the authors ask: what if the UI just spoke the agent's language?

Figure 1: Fragile Atomic Operations vs. Robust CI4A. In contrast to traditional methods entangled in error-prone multi-step chains for date selection, CI4A collapses complex logic into deterministic single-step invocations, eliminating the uncertainty of long-sequence execution.

Methods

The authors introduce CI4A (Component Interface for Agent), a protocol that exposes the existing modular architecture of modern frontend frameworks (like React or Vue) directly to agents.

Every UI component is abstracted into a semantic contract with three parts:

  • Semantic State View ($\mathcal{S}$): Bypasses the rendered HTML to read the component's internal memory state directly—exposing hidden or lazy-loaded options in $O(1)$ context cost without clicking around.
  • Executable Toolset ($\mathcal{T}$): Replaces physical clicks and keystrokes with clean function calls like setValue or navigateTo.
  • Interaction Metadata ($\mathcal{M}$): Explicitly tells the agent parameter types, constraints, and valid formats (e.g., YYYY-MM-DD), eliminating blind trial-and-error.

At runtime, components register themselves in a global browser object (window.__ci4a__) and tag their DOM root with a unique ID (data-cid).

Figure 3: CI4A workflow. Components register with a global registry, allowing agents to retrieve the triplet ⟨SK, ΣTK, MK⟩for hybrid view construction. The agent then determines tool invocations and their parameters from this view and executes the tools through the registry.

To prove this works in the real world, the authors built two things:

  1. AntDX: A reference implementation instrumenting 23 core components (tables, menus, date pickers, etc.) of the industrial-grade Ant Design UI library. Because AntDX keeps the exact same developer APIs, existing apps can adopt it just by swapping the package dependency.
  2. Eous: A hybrid web agent (built on a standard Planner-Decider-Reflector loop) that dynamically updates its action space based on the page. Eous follows a Semantic First strategy—prioritizing CI4A tools (paired with either text trees or Set-of-Mark annotated screenshots) and falling back to standard WebDriver click/type actions only when a component isn't instrumented.

Datasets

No datasets were used for model training (the evaluated agents use off-the-shelf models without domain-specific fine-tuning).

For evaluation, the authors tackled a classic "cold start" problem: existing benchmarks use legacy HTML that doesn't support CI4A. They refactored the Playground scenarios (182 tasks) of the WebArena benchmark using Ant Design, strictly preserving the original layout, content, and business logic, and then swapped in AntDX to create an infrastructure-enabled testbed.

Key Insights and Ideas

  • Collapsing the Action Chain: By shifting from mechanical simulation to contract-based invocation, multi-step physical interactions collapse into single deterministic calls.
  • Penetrating "Progressive Disclosure": Traditional screen/DOM parsers are blind to lazy-loaded menus until they click them, and often misread ambiguous CSS toggles. Reading component memory directly gives agents X-ray vision into the UI's true state.
  • Decoupling Task Logic from Horizon Length: Normally, longer tasks mean exponentially more chances to hallucinate or misclick. Semantic shortcuts intercept these long sequences at the decision layer, keeping agents remarkably resilient even on complex tasks.
Figure 4: Action space distribution of Eous vs. Baselines. Compared to baselines that rely on lengthy low-level atomic actions, Eous leverages high-level semantic tools via CI4A to significantly collapse physical interaction chains, thereby reducing total steps.

Key Results

Tested across 182 refactored WebArena tasks (using GPT-5 with temperature 0 for Eous and main baselines, plus Seed-1.8 for the end-to-end visual baseline MidScene):

  • High Task Success: Visual-mode Eous (V) achieved an 86.3% success rate, beating the multimodal AgentOccam baseline (70.3%) and the specialized end-to-end GUI model MidScene (61.5%). In text-only structural mode, Eous (S) hit 75.3% vs. WebArenaBase's 26.4% and AgentOccam's 69.2%.
  • Massive Efficiency Gains: Eous cut the average interaction steps more than in half—dropping from 10.4 steps (AgentOccam V) and 13.0 steps (MidScene) down to 4.7 steps (visual) and 4.2 steps (structural).
  • Long-Horizon Resilience: On "Long" tasks (>10 baseline steps), baseline average success plummeted from 81.1% (Short) to 37.15%, whereas Eous (V) maintained a 74.3% success rate.

Limitations and Future Work

  • Manual Instrumentation Effort: AntDX required manually instrumenting Ant Design's source code. Doing this by hand for every UI framework is labor-intensive; the authors suggest using LLMs or static analysis to auto-generate CI4A wrappers for legacy libraries.
  • Open-World Scalability: Most live websites don't run CI4A yet. Future work envisions an online adaptation mechanism that recognizes common UI patterns on the fly and injects temporary CI4A interfaces via real-time JavaScript, saving them as reusable skills.
  • Safety Guardrails: Because CI4A uses explicit semantic contracts rather than opaque coordinate clicks, the authors plan to build safety middleware that intercepts and validates high-risk calls (like payments) for human-in-the-loop approval.

Summary updated

Abstract

While Large Language Models demonstrate remarkable proficiency in high-level semantic planning, they remain limited in handling fine-grained, low-level web component manipulations. To address this limitation, extensive research has focused on enhancing model grounding capabilities through techniques such as Reinforcement Learning. However, rather than compelling agents to adapt to human-centric interfaces, we propose constructing interaction interfaces specifically optimized for agents. This paper introduces Component Interface for Agent (CI4A), a semantic encapsulation protocol that abstracts the complex interaction logic of UI components into a set of unified tool primitives accessible to agents. We implemented CI4A within Ant Design, an industrial-grade front-end framework, covering 23 categories of commonly used UI components. Furthermore, we developed a hybrid agent featuring an action space that dynamically updates according to the page state, enabling flexible invocation of available CI4A tools. Leveraging the CI4A-integrated Ant Design, we refactored and upgraded the WebArena benchmark for infrastructure-enabled evaluation. Experimental results demonstrate that the CI4A-based agent outperforms the evaluated approaches, achieving a task success rate of 86.3\% in the CI4A-integrated environment, alongside substantial improvements in execution efficiency.
BibTeX
@inproceedings{qiu2026ci,
  author = {Zhi Qiu and Jiazheng Sun and Chenxiao Xia and Jun Zheng and Xin Peng},
  title = {{CI4A: Semantic Component Interfaces for Agents Empowering Web Automation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2OjpGbcs3u},
}
Figure