New CUAnything pipeline converts API workflows to GUI environments
Researchers have introduced CUAnything, a pipeline that turns programmatic benchmarks into graphical interfaces to better evaluate screenshot-based agents.
Source: Grafy Research LabResearchers have developed a new pipeline designed to bridge the gap between programmatic AI tasks and graphical user interface (GUI) interactions. This system, called CUAnything, allows developers to transform existing API-based benchmarks into visual environments where agents must use mouse and keyboard inputs to succeed.
What is the CUAnything pipeline?
CUAnything is a framework that converts programmatic workflows—tasks that are typically executed via structured tools or APIs—into reusable graphical workbenches. According to the researchers, this is necessary because while many benchmarks provide executable tasks for agents using APIs, evaluating agents that rely on screenshots requires a graphical interface that still preserves the original success criteria of the task.
Figure 1 shows the CUAnything construction and evaluation pipeline, illustrating how metadata from source states and operations is used to build these environments. The pipeline derives application specifications from source state schemas or REST endpoint schemas, rendering them as specialized layouts or operation forms. This allows an agent to observe a screenshot and act as a human would, while the underlying backend executes the actual operations.
How does the system maintain task accuracy?
To ensure that the visual interface does not change the fundamental nature of the task, the researchers implemented a "semantic contract." This contract specifies exactly which operations, state transitions, and visible evidence the interface must preserve.
By following this contract, the system ensures that if an agent performs an action in the GUI, the resulting change in the backend matches what would have happened via an API call. The researchers used replay and source-grader checks to verify this alignment. For example, in the REST configuration, they compared 4,341 calls that could be replayed through a form against original source calls to ensure the effects remained consistent.
Which benchmarks were used for testing?
The researchers instantiated the CUAnything pipeline using two primary datasets to demonstrate its versatility. First, they utilized 600 workflows from AutomationBench, which covers various professional domains including sales, marketing, finance, and HR. Second, they adapted 246 questions from the OfficeQA corpus, creating a dedicated library interface known as OfficeQA-GUI.
By applying the pipeline to these existing datasets, the researchers were able to test how well screenshot-based agents perform on tasks that were originally designed for programmatic tool use. This provides a standardized way to compare the efficiency of agents across different interaction modalities.
What are the performance results for AI agents?
Testing revealed a significant performance gap between API-based interaction and GUI-based interaction. In a paired comparison using the 600 AutomationBench workflows, the researchers found that the DeepSeek V4.1 Flash model completed 56.17% of tasks when using the API, but only 9.17% when operating through the GUI under the evaluated configurations.
While increasing the allowed number of steps (the step budget) in the GUI improved partial progress, many workflows remained incomplete. This discrepancy highlights the current difficulty agents face when translating high-level reasoning into precise visual actions like clicking and typing, compared to the directness of structured API calls.
How can researchers apply these findings?
For researchers studying agentic workflows, CUAnything provides a method to collect high-quality interaction data and evaluate the "computer-use" capabilities of new models. It moves beyond simple text-based evaluations by forcing models to interact with simulated software environments that are grounded in real programmatic logic. This approach helps identify exactly where models fail—whether in planning the steps or in the visual execution of those steps.
If you are interested in exploring the technical details of how AI models interpret complex documentation or research papers related to agentic architectures, you can use Reader to analyze the original papers and technical specifications.
Frequently asked questions
What does CUAnything convert into graphical environments?
CUAnything converts programmatic workflow tasks, which are typically defined by APIs or structured tool calls, into graphical user interface environments. It uses the original metadata, state schemas, and operation signatures to build visual workbenches that agents can navigate using mouse and keyboard inputs.
How does the semantic contract work?
The semantic contract acts as a set of rules that ensures the new graphical interface remains faithful to the original programmatic task. It specifies which state transitions and visible evidence must be preserved so that the agent's success in the GUI is measured by the same criteria used in the original API-based benchmark.
Why is there a performance gap between APIs and GUIs?
The performance gap exists because interacting via a GUI is significantly more complex for current models than using an API. While APIs provide direct, structured paths to execute commands, GUIs require the agent to accurately perceive screenshots and execute precise spatial actions, which leads to lower completion rates in current benchmarks.
Source: Grafy Research Lab — CUAnything: Turning Programmatic Workflows into Computer-Use Environments


