VACP: Visual Analytics Context Protocol

Tobias Stähle, Péter Ferenc Gyarmati, Thilo Spinner, Rita Sevastjanova, Dominik Moritz, Mennatallah El-AssadyarXiv 2026

TL;DR

The Visual Analytics Context Protocol (VACP) bridges the "interface mismatch" between human-centric data visualization dashboards and AI agents. By exposing a structured, semantic application state and an intent-driven interaction gateway, VACP enables LLM agents to accurately navigate and manipulate complex visual analytics (VA) systems. This protocol boosts agent task success rates to near-perfect levels while drastically reducing token consumption and execution latency compared to standard vision- or DOM-based approaches.

What Problem Does This Paper Address?

As AI agents transition from passive text processors to autonomous web users, they are increasingly tasked with operating interactive user interfaces to analyze data. However, existing Visual Analytics (VA) systems are optimized for human eyes (rendered pixels) and human hands (mouse events), creating an environment hostile to AI.

Current agentic approaches rely on two flawed paradigms:

  1. Computer Vision / Pixels: Agents look at screenshots, which introduces coordinate imprecision, high hallucination rates, and an inability to handle dense data environments (like overlapping points in a scatterplot).
  2. Raw DOM Parsing: Agents read the underlying HTML tree. However, modern interactive charts rely heavily on <canvas> or complex SVG structures. To a standard DOM parser, a dense scatterplot looks like an unreadable "black box" of thousands of anonymous path elements, quickly exhausting the LLM's context window.

This paper addresses this fundamental "interface mismatch" by making VA applications explicitly "agent-ready."

Methods

The authors introduce VACP (Visual Analytics Context Protocol), an abstraction layer that decouples the AI agent from low-level rendering details and provides a unified, machine-readable protocol.

Fig. 1: AI agents interacting with Visual Analytics (VA) interfaces using VACP (Visual Analytics Context Protocol). VACP maintains the application state and available interactions informed through the different types of knowledge representation of the VA entities. To perform analytical tasks in the interface, an AI agent can use the provided capabilities to perceive the VA interface and understand possible interactions by using VACP. Further, it can interact with the VA interface through the provided interactions. Interactions (e.g., I1 or I2) manipulate the interface appearance, triggering a state transition (e.g., S2 →S3) in the application within the VACP layer.

VACP structures the interaction space into three core components:

  • Application State Representation: Instead of raw pixels or HTML, VACP models the interface as a temporal semantic graph. Nodes represent distinct components (e.g., a specific plot or dropdown), and edges capture structural containment and semantic relationships (e.g., "Selection in Plot A filters Data in Plot B").
  • Exposition of Available Interactions: VACP explicitly exposes valid, intent-driven actions (like brushing a range or hovering) along with their required parameters, data types, and valid ranges via a get_capabilities() API.
  • Interaction Execution Gateway: Instead of forcing agents to simulate clumsy physical mouse drags, the gateway translates the agent's high-level intent directly into system functions, validating parameters and providing structured error feedback for self-correction.

To prevent token bloat, VACP uses a details-on-demand architecture. It exposes only data structures and availability initially; agents can then use specific functions (inspect_data()) to query precise subsets of data as needed.

Fig. 2: Overview of knowledge representation layers in VA applications, agents’ accessibility, and VACP functions for perceiving the VA interface at each level and supporting interactions. Each layer abstracts the knowl- edge, including the data to be analyzed, data encoding, and interface functionalities defined by production logic and design decisions.

The authors implemented VACP as a TypeScript library with built-in adapters for popular visualization frameworks like Vega-Lite and Mosaic vgplot, using the Model Context Protocol (MCP) as a transport layer.

Datasets

Because no standardized benchmark existed for evaluating AI agents on interactive visualization tasks, the authors curated a new benchmark consisting of five representative VA use cases:

Overview of the five curated visual analytics use cases
  1. UC1 - Global Development: A bubble chart tracking health demographics over time with animation sliders and geometric zooming.
  2. UC2 - Seattle Weather: A coordinated multiple-view system linking a scatterplot and a bar chart with bidirectional cross-filtering.
  3. UC3 - Olympic Athletes: A dashboard combining a biometric scatterplot with regression lines and a sortable data table.
  4. UC4 - U.S. Flights: A dense geospatial node-link diagram prone to visual occlusion.
  5. UC5 - Technical Car Specs: A Parallel Coordinates Plot enabling multivariate analysis through multi-axis brushing and axis reordering.

Each use case included three atomic tasks focusing on fundamental analytical primitives: locate, identify, and compare. The benchmark was pre-validated by 7 human experts to ensure real-world representativeness and solvability.

Key Insights and Ideas

  • Intent-Level Interaction Trumps Physical Emulation: Forcing an AI agent to calculate exact pixel coordinates to simulate a mouse drag is highly inefficient. Agents perform significantly better when interacting at the intent level (e.g., executing a tool call that defines a semantic data brush).
  • The Semantic-to-Pragmatic Verification Loop: The most successful agents exhibited a human-like behavior pattern when given full access. They used VACP's semantic layer to quickly extract insights and run queries, then dropped down to the visual layer (screenshots) to visually cross-check and verify their findings before submitting an answer.
  • Dual-Channel Architecture for the Future: Purely "headless" data access can lead to semantic pitfalls (like missing outliers due to rigid assumptions). The authors argue that future agent-ready systems must offer a dual-channel setup: robust semantic APIs paired with deterministic visual feedback.

Key Results

The authors evaluated three state-of-the-art models (GPT-5.2, Claude 4.5 Sonnet, and Gemini 3 Pro Preview) across four context scenarios:

  • The Visual Gap: Standard vision- and DOM-based agents (Scenario S1) performed poorly, achieving low overall success rates (28% to 51%). They consistently failed dense data tasks due to visual occlusion and lack of coordinate precision.
  • VACP Dominance: When equipped with VACP (Scenarios S3 and S4), the agents achieved near-perfect success rates (up to 100%) across all models and use cases.
  • Massive Efficiency Gains: VACP dramatically cut down computational overhead. For instance, Claude 4.5 Sonnet consumed fewer than 2,000 tokens on average per task using VACP, compared to tens of thousands of tokens when parsing raw DOM structures, while also significantly reducing execution time.

Limitations and Future Work

  • Loss of Visual Nuance: Converting an interface purely into text and structure discards rich visual features like spatial clustering and Gestalt principles, which humans process intuitively.
  • Developer Overhead: Implementing VACP requires developers to manually map application states and interaction capabilities to the protocol, which can become a bottleneck for highly custom or rapidly changing interfaces.
  • Inference Latency: Real-time synchronous collaboration between humans and agents is currently bottlenecked by LLM generation speeds, prompting the need for future research into asynchronous agent operations.

Summary updated

BibTeX
@misc{stahle2026vacp,
  author = {Tobias Stähle and Péter Ferenc Gyarmati and Thilo Spinner and Rita Sevastjanova and Dominik Moritz and Mennatallah El-Assady},
  title = {{VACP: Visual Analytics Context Protocol}},
  year = {2026},
  eprint = {2603.29322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.29322},
}
Figure