TRANSMISSION // 2612.02927v1

Turning API Workflows into GUI Tests for AI Agents

Source published

CUAnything converts existing programmatic tasks into graphical workbenches, letting researchers test whether agents can complete them from screenshots and mouse or keyboard input.

AI-generated conceptual illustration for Turning API Workflows into GUI Tests for AI Agents
AI-generated conceptual illustration; not documentary evidence.

An AI agent may handle a business task through an API yet struggle to do the same work by navigating a screen. CUAnything offers a way to test that gap using tasks whose goals and graders already exist.

Testing the same task through a screen

Many AI-agent benchmarks provide structured tools or APIs: an agent issues a command, receives a result, and is graded on whether the required state change occurred. But researchers also want to know whether an agent can find information and carry out tasks through a graphical interface, using screenshots, mouse clicks and keyboard input. Building a new graphical benchmark from scratch takes work—and may change what counts as success.

In CUAnything, researchers Yuchen Wang, Xiaoying Xing, Tianyu Liu and Kunyu Shi propose converting existing programmatic tasks into graphical workbenches while retaining the original task instructions, initial states, operations and graders. Their question is whether these translated environments can preserve the original success criteria and provide a useful setting for evaluating screenshot-based agents.

Building and checking the workbenches

The pipeline uses information about a source system’s state and operations to create graphical views and forms. Depending on the source, it can build record pages and application-style views, or searchable operation cards with fields for entering arguments. When an agent submits a form, the workbench invokes the underlying operation. The agent sees screenshots and acts through mouse and keyboard inputs; the original grader checks the resulting business state or answer.

The authors define a semantic contract for the translation. In plain terms, the graphical version should make relevant operations reachable, preserve their effects on state, and show the evidence needed to solve the task. This separates fidelity to a task’s function from resemblance to a commercial application: the workbench aims to preserve what the task allows and measures, not reproduce the original software’s look and feel.

They test the approach in two settings. AutomationBench-GUI presents 600 workflows across six business domains. OfficeQA-GUI presents 246 questions about Treasury Bulletin documents through a library interface and answer form. It uses the source benchmark’s answer scorer. For AutomationBench’s REST-based configuration, the team also replays recorded operations and compares responses and state changes against the source system. In a sample of 60 tasks, sequential source and form replays received the same grader score on every task. That is evidence about the sampled replay setup—not proof that every possible operation, interface or task has been exhaustively checked.

What the agent results show

The headline comparison uses DeepSeek V4.1 Flash on the same 600 AutomationBench tasks. Under the evaluated configurations, it fully completed 56.17% through the API and 9.17% through the GUI. “Fully completed” means passing every scored assertion for a task; the paper also reports partial scores that capture progress without full completion. Those fell from 85.30% through the API to 29.62% through the GUI.

This comparison is informative but does not isolate interface as the only difference. The runs used the same model version, reasoning effort, task instances, initial states and grader, but differed in interaction setup and budget: the API run allowed up to 50 model turns, while the GUI run used a 400-step limit. A GUI step is not equivalent to an API turn, and the GUI agent must locate and operate controls on screen. The authors report that the limit stopped 432 of the 600 GUI workflows. In a 60-task rerun with an 800-step limit, full completion rose from 8.3% to 15.0%, and partial scores also improved. More budget helped in that sample, but many workflows still fell short.

Results were not uniformly low across all agents or tasks. Across the four reported GUI configurations on AutomationBench-GUI, 448 of the 600 workflows were fully completed at least once. On OfficeQA-GUI, exact-answer scores varied by model; the highest listed was 78.05%. These figures describe the tested models, prompts, harnesses and task sets, not computer-use agents in general.

What remains uncertain

The replay checks support the claim that the workbench can preserve important source behavior in the tested cases. Yet the authors also identify source-task or grading issues in a review of 60 failed GUI episodes. The audit was sampled and partly model-assisted, with labels checked against run records. Such issues complicate interpreting agent failures as purely interface failures.

The results depend on particular backends, interface designs, model configurations and interaction budgets. The workbenches preserve source-task functionality but do not replicate commercial interfaces. The authors identify broader backend coverage and validation of collected trajectories for training as future work. CUAnything is best understood as a method and two benchmark instantiations, rather than a definitive ranking of API and GUI ability.

The source is an arXiv preprint. The paper text available for this article does not establish that the work has undergone peer review, so its methods and results should be treated as preliminary pending independent scrutiny and replication.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.