Manuscript Offprint
arXiv:2611.17797Vision-as-a-Tool: Visual Harness for Multimodal Agentic Coding
Abstract
Multimodal agentic coding requires robust visual reasoning to analyze observations and evaluate generated artifacts. Current frameworks largely rely on a Thinking-with-Images paradigm, where agents depend on their intrinsic vision to execute visually grounded tasks. However, this architectural coupling introduces a fundamental bottleneck. Agent performance remains strictly bounded by internal perceptual limitations. Furthermore, text-only agents lack native perception. Without specialized tools, they cannot perform visual reasoning. To overcome these constraints, we introduce the Vision-as-a-Tool (VaaT) paradigm. Prior visual tool-use merely manipulates images for an agent's intrinsic vision to read. In contrast, VaaT reframes general-purpose multimodal large language models (MLLMs) as callable external utilities. As a result, text-only agents can completely off-float visual reasoning during agentic execution. Meanwhile, vision-capable agents can dynamically augment their native perception on demand. We instantiate this paradigm in VHarness, a unified framework driven by five atomic actions. We comprehensively evaluate VHarness across Image-to-HTML, Image-to-SVG, and Image-to-3D generation tasks. Experimental results demonstrate that VHarness consistently improves visual fidelity and geometric accuracy across both text-only and multimodal coding agents. These findings highlight that modularizing visual reasoning into callable utilities provides a flexible and scalable foundation for future agentic coding systems.

Figure 1. Overview of VHarness, an instantiation of the Vision-as-a-Tool (VaaT) paradigm. Given a target visual input across Image-to-HTML, Image-to-SVG, and Image-to-3D tasks, a multimodal or text-only coding agent iteratively refines rendered Working Artifacts toward the final Code Artifacts. Rather than following a fixed workflow, the coding agent chooses among intrinsic vision when available (dashed blue), code writing and editing (green), and external visual utilities (purple) on demand, as shown in the Interleaved Trajectory.
†Work done during internship at Microsoft Research.
1. Introduction
Multimodal agentic coding requires agents to interleave code generation with visual reasoning to analyze inputs and verify rendered artifacts. Current frameworks predominantly follow the Thinking-with-Images paradigm [9, 13, 19], where coding agents rely on their own intrinsic vision to inspect images, whether directly or through basic image-manipulation operations such as cropping and zooming. However, tightly coupling visual perception with the coding agent introduces two fundamental limitations. First, for multimodal coding agents, output quality remains strictly bounded by their intrinsic perception. Even when recent studies design task-specific workflows [10, 24, 26] for iterative code refinement, they fail to break this intrinsic perceptual bound while sacrificing generalizability across diverse coding tasks. Second, text-only coding agents are entirely excluded from this paradigm due to the lack of native perception; while prior works attempt to equip them with fixed visual modules such as captioners and layout detectors [20, 25], or perception pipelines tailored exclusively for visual question answering [11, 30], such designs cannot support the closed-loop refinement required by agentic coding.
To overcome these limitations, we introduce the Vision-as-a-Tool (VaaT) paradigm for multimodal agentic coding (Figure 1). Rather than relying on the agent's intrinsic vision or fixed task-specific perception designs, VaaT reframes an external MLLM as general-purpose visual utilities through a unified interface. Within this paradigm, the coding agent autonomously invokes these utilities during execution to obtain perceptual feedback that guides code generation and refinement. By decoupling visual perception from code generation, VaaT allows text-only coding agents to offload visual perception entirely to external visual utilities, while enabling multimodal coding agents to dynamically augment their intrinsic vision on demand.
To instantiate this paradigm, we develop VHarness, a unified framework organized around five intuitive atomic actions that expose visual utilities to the coding agent. Just as software engineering relies on general-purpose shell utilities such as grep for searching text and diff for comparing files, VHarness extends this philosophy to the visual domain: transcribe for holistic structure extraction, grep for visual element localization, inspect for fine-grained attribute querying, align for visual assertion checking, and diff for image-to-image comparison between target and rendered artifacts. This compact interface seamlessly adapts across diverse tasks without task-specific workflow engineering.
To rigorously and quantitatively evaluate the VaaT paradigm, we focus on vision-to-code generation tasks where rendered outputs can be directly verified against
ground-truth visual inputs. Specifically, we evaluate VHarness across three diverse domains, spanning webpage reconstruction in Image-to-HTML, vector graphics generation in Image-to-SVG, and procedural modeling in Image-to-3D [7]. Our experiments verify the effectiveness of VHarness across two categories of coding agents. First, VHarness consistently improves visual fidelity and geometric accuracy across multimodal coding agents, including GPT-5.5 [14], GPT-5.6-sol [15], Claude Opus 4.8 [1], and GLM-5.3-Flash [28]. Second, for text-only coding agents, VHarness enables GLM-5.2 [27] to execute visually grounded tasks and achieve performance competitive with the native multimodal baseline GPT-5.5. Together, these results demonstrate that modularizing visual perception into callable utilities provides a flexible and scalable foundation for multimodal agentic coding.
The main contributions of this paper include:
-
Vision-as-a-Tool Paradigm. We propose the Vision-as-a-Tool (VaaT) paradigm for multimodal agentic coding, which reframes an external MLLM as general-purpose visual utilities, enabling coding agents to offload or augment visual perception on demand.
-
Unified VHarness Framework. We develop VHarness around five intuitive atomic actions (transcribe, grep, inspect, align, and diff), providing a compact interface that adapts across diverse vision-to-code tasks under a unified action interface.
-
Cross-Task and Cross-Model Validation. We validate VHarness across Image-to-HTML, Image-to-SVG, and Image-to-3D tasks, demonstrating consistent gains for both multimodal and text-only coding agents.
2.1. Formulation of VaaT Paradigm
We formulate the process of multimodal agentic coding as follows. Given a visual input and a rendering environment , the coding agent is expected to iteratively generate verbal thoughts and code updates as part of the coding process and ultimately produce the final code. Let represent a coding agent with parameters denote callable external visual utilities with parameters , and denote the sequences of verbal thoughts, code updates, and rendered images, respectively, where , and denote the corresponding elements at iteration .
In multimodal agentic coding, at iteration , let denote the subset of selected images. Existing Thinking-with-Images methods apply pixel-level image ma-nipulations (e.g., cropping or zooming) to and feed the manipulated images back into the coding agent. Vision-as-a-Tool (VaaT) instead invokes the external visual utilities on demand with an atomic action on to obtain perceptual feedback, as shown in Figure 1. As defined in Equations 1 and 2, the code generation at iteration under the two paradigms is formulated as:
While Thinking-with-Images relies on the coding agent's intrinsic vision to inspect the manipulated images, VaaT decouples visual perception from code generation by invoking the external visual utilities. Consequently, VaaT allows text-only coding agents that cannot accept image inputs to offload visual perception entirely to the external visual utilities, while enabling multimodal coding agents to dynamically augment their intrinsic vision on demand.
2.2. Instantiating the VaaT Paradigm via VHarness
As shown in Figure 3, we present VHarness as a representative instantiation of the VaaT paradigm that implements external visual utilities using a general-purpose MLLM. Rather than designing task-specific perception pipelines, VHarness draws inspiration from traditional software engineering, where developers rely on general-purpose shell and debugging primitives to search patterns, inspect code blocks, check assertions, and compare file revisions. Extending this philosophy to the visual domain, VHarness exposes five intuitive atomic actions:
• transcribe. For holistic structure extraction, transcribe takes the target image and generates a global layout description or initial structural draft to bootstrap code construction.
• grep. For visual element localization, grep takes an image and a textual description, locates the corresponding visual elements, and returns their bounding boxes.
• inspect. For fine-grained visual observation, inspect takes an image or a localized region and returns detailed observations of local appearance, typography, or geometric structure.
• align. For visual assertion checking, given an image or a localized region together with a target text or specification, align returns a Boolean judgment indicating whether the visual content matches the specification.
- diff. For image-to-image comparison, given the target image and the rendered image, diff identifies visual discrepancies between them and localizes mismatched regions to guide subsequent refinement.
2.3. On-Demand Agentic Execution
Rather than prescribing a fixed workflow, VHarness exposes the five atomic actions as callable tools (Figure 3), allowing the coding agent to autonomously coordinate code updates, intrinsic vision, and external visual utilities throughout the coding process. During execution, both text-only and multimodal coding agents can invoke grep and inspect on demand to resolve regional placement or fine-grained visual details. Once the code is rendered into an image, the agent flexibly interleaves align and diff with further grep and inspect calls to diagnose discrepancies and plan subsequent refinements. Through this dynamic interplay, the agent continuously translates perceptual feedback into targeted code updates.
In practice, VHarness exposes the five atomic actions as callable tools through the Model Context Protocol (MCP). Crucially, neither the baseline nor VHarness enforces a minimum iteration count or fixed token budget; instead, both terminate once the rendered artifact is judged visually complete. Whereas a baseline agent relies solely on its intrinsic vision to decide when to stop, an agent with VHarness relies on external visual utilities to verify completion.
3. Experiments and Analysis
3.1. Vision-to-Code Tasks
To rigorously and quantitatively evaluate the VaaT paradigm in multimodal agentic coding, we focus on vision-to-code generation tasks, where rendered outputs can be directly verified against ground-truth visual inputs. While prior benchmarks such as Design2Code [19] have been widely used for visual coding evaluation, their test cases predominantly consist of standard grid-based web templates or simple graphic icons, on which modern MLLMs and even fine-tuned lightweight models can already solve with high accuracy. To provide sufficient difficulty to demonstrate the effectiveness of VHarness, we benchmark across three tasks spanning complex Image-to-HTML, challenging Image-to-SVG, and Image-to-3D, each comprising 100 complex test cases (see Appendix A for data curation details and cases).
Image-to-HTML. We curate 100 complex webpage designs spanning diverse layout styles from publicly available online sources, encompassing not only complex webpages but also editorial magazines, promotional posters, and presentation slides with highly irregular structures. For each

Figure 2. Qualitative comparisons across Image-to-HTML, Image-to-SVG, and Image-to-3D tasks. From left to right, we show the full reference input, the enlarged ground truth, and the corresponding rendered code artifacts from VHarness (Ours) and the Baseline. Red dashed lines highlight key layout boundaries and geometric contours. Compared with the baseline, VHarness faithfully preserves curved text wrapping in HTML, isometric contours and fine details in SVG, and organic branching geometry in 3D.
case, the coding agent receives a full-page target screenshot accompanied by pre-extracted visual assets, such as icons and illustrations, and generates a self-contained HTML/CSS document rendered by a headless browser. All models and experimental configurations receive the same assets without spatial coordinates or layout metadata. This task primarily evaluates the agent's ability to recover text flow and document hierarchy, requiring it to jointly reconstruct structural layout, typography, asset placement, and complex text-wrapping behaviors solely from visual observation. Representative benchmark cases and experimental setup details are provided in Appendices A and B.
Image-to-SVG. We collect 100 graphic designs from publicly available online sources, focusing on examples with intricate geometry and fine-grained detail compositions. Given a raster target image without any external visual assets, the coding agent must generate standalone Scalable Vector Graphics (SVG) code, which the rendering environment rasterizes into a rendered image. Unlike webpage reconstruction, Image-to-SVG requires the agent to synthesize continuous shapes, Bézier paths, gradients,
and multi-layered detail compositions purely through vector primitives. Representative benchmark cases and experimental setup details are provided in Appendices A and B.
Image-to-3D. We randomly sample 100 cases from 3DCodeBench [7], where the target visual input consists of four canonical views of a 3D object. The coding agent generates an executable Blender Python script to procedurally construct the 3D mesh, which the rendering environment exports in GLB format and renders from matching camera viewpoints to produce the rendered views. This task extends visual coding from 2D planes to 3D space, requiring the agent to infer volumetric proportions, part connectivity, and multi-view geometric consistency from 2D projections. Representative benchmark cases and experimental setup details are provided in Appendices A and B.
3.2. Experimental Setup
Models and Baselines. To ensure a controlled comparison, both the baseline (w/o VHarness) and our method (w/ VHarness) are built upon the standard Claude Code
Table 1. Quantitative comparison of final rendered artifacts with (w/) and without (w/○) VHarness across Image-to-HTML, Image-to-SVG, and Image-to-3D (100 cases per task). *Due to inference budget constraints, the text-only coding agent GLM-5.2 is evaluated on a random subset of 50 cases per task. Arrows indicate the preferred direction for each metric, and bold marks the best result in each column.
| Model | VHarness | 2D Perceptual | 2D Structural | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SigLIP2 ↑ | DINov2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Edge P ↑ | Edge R ↑ | Edge F1 ↑ | ||
| GPT-5.5 | w/o | 0.5773 | 0.8881 | 0.2277 | 0.6789 | 0.6950 | 0.0500 | 0.5464 | 0.5335 | 0.5389 |
| w/ | 0.6319 | 0.9046 | 0.1820 | 0.6930 | 0.7201 | 0.0461 | 0.5867 | 0.5792 | 0.5820 | |
| GPT-5.6-sol | w/o | 0.6527 | 0.9055 | 0.1635 | 0.7197 | 0.7496 | 0.0414 | 0.6625 | 0.6433 | 0.6517 |
| w/ | 0.6859 | 0.9131 | 0.1414 | 0.7385 | 0.7663 | 0.0385 | 0.7009 | 0.6883 | 0.6936 | |
| Claude Opus 4.8 | w/o | 0.3908 | 0.7167 | 0.4596 | 0.5494 | 0.4539 | 0.0896 | 0.3395 | 0.3152 | 0.3257 |
| w/ | 0.5077 | 0.8715 | 0.2974 | 0.6084 | 0.6211 | 0.0615 | 0.4399 | 0.4251 | 0.4316 | |
| GLM-5.2* | w/ | 0.6044 | 0.8949 | 0.2028 | 0.6715 | 0.7242 | 0.0477 | 0.6107 | 0.5736 | 0.5907 |
| GLM-5.3-Flash | w/o | 0.6743 | 0.9019 | 0.1486 | 0.7411 | 0.7696 | 0.0387 | 0.7186 | 0.7020 | 0.7089 |
| w/ | 0.7553 | 0.9216 | 0.0937 | 0.7942 | 0.8196 | 0.0297 | 0.8135 | 0.8003 | 0.8059 | |
| Model | VHarness | 2D Perceptual | 2D Structural | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SigLIP2 ↑ | DINov2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Edge P ↑ | Edge R ↑ | Edge F1 ↑ | ||
| GPT-5.5 | w/o | 0.6265 | 0.8524 | 0.1537 | 0.8146 | 0.8037 | 0.0159 | 0.6239 | 0.6068 | 0.6141 |
| w/ | 0.6537 | 0.8793 | 0.1266 | 0.8281 | 0.8375 | 0.0132 | 0.6561 | 0.6428 | 0.6478 | |
| GPT-5.6-sol | w/o | 0.6703 | 0.8884 | 0.1087 | 0.8421 | 0.8614 | 0.0116 | 0.7052 | 0.6938 | 0.6985 |
| w/ | 0.6830 | 0.9020 | 0.1001 | 0.8502 | 0.8652 | 0.0108 | 0.7055 | 0.7001 | 0.7020 | |
| Claude Opus 4.8 | w/o | 0.4774 | 0.7220 | 0.3759 | 0.7100 | 0.4951 | 0.0443 | 0.3286 | 0.3088 | 0.3165 |
| w/ | 0.5502 | 0.7871 | 0.2605 | 0.7551 | 0.6729 | 0.0281 | 0.4510 | 0.4257 | 0.4360 | |
| GLM-5.2* | w/ | 0.6507 | 0.8656 | 0.1219 | 0.8471 | 0.8756 | 0.0094 | 0.7383 | 0.6665 | 0.6950 |
| GLM-5.3-Flash | w/o | 0.6887 | 0.8974 | 0.0943 | 0.8597 | 0.8880 | 0.0085 | 0.7292 | 0.7245 | 0.7262 |
| w/ | 0.7095 | 0.9207 | 0.0778 | 0.8742 | 0.9109 | 0.0069 | 0.7598 | 0.7765 | 0.7671 | |
| Model | VHarness | 2D Perceptual | 2D Structural | 3D Geometric | |||||
|---|---|---|---|---|---|---|---|---|---|
| SigLIP2 ↑ | DINov2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Uni3D ↑ | Chamfer ↓ | ||
| GPT-5.5 | w/o | 0.6101 | 0.6622 | 0.1485 | 0.8901 | 0.7157 | 0.0242 | 0.7575 | 0.0094 |
| w/ | 0.6822 | 0.7496 | 0.0875 | 0.9190 | 0.8541 | 0.0092 | 0.7933 | 0.0058 | |
| GPT-5.6-sol | w/o | 0.6400 | 0.7046 | 0.1211 | 0.9043 | 0.7515 | 0.0169 | 0.7738 | 0.0157 |
| w/ | 0.7212 | 0.8122 | 0.0634 | 0.9296 | 0.9023 | 0.0055 | 0.8496 | 0.0035 | |
| Claude Opus 4.8 | w/o | 0.5194 | 0.5342 | 0.2353 | 0.8738 | 0.4586 | 0.0384 | 0.7129 | 0.0339 |
| w/ | 0.6344 | 0.7017 | 0.1269 | 0.9048 | 0.7502 | 0.0149 | 0.7863 | 0.0086 | |
| GLM-5.2* | w/ | 0.6400 | 0.6623 | 0.1250 | 0.9076 | 0.7470 | 0.0162 | 0.7548 | 0.0092 |
| GLM-5.3-Flash | w/o | 0.6937 | 0.7593 | 0.0838 | 0.9229 | 0.8612 | 0.0082 | 0.8154 | 0.0056 |
| w/ | 0.7336 | 0.8190 | 0.0567 | 0.9367 | 0.9262 | 0.0045 | 0.8545 | 0.0035 | |
agent harness. Under the baseline setting, vision-capable agents follow the Thinking-with-Images paradigm within the default harness environment, where they can use pre-installed Python image-processing libraries or install additional packages on demand to assist their native visual inspection. Building directly upon this baseline harness, VHarness registers the five atomic visual actions as callable MCP tools, using Gemini-3.8-Flash to power the external visual utilities. Within this setup, we evaluate two categories of coding agents, encompassing multimodal coding agents (GPT-5.5 [14], GPT-5.6-sol [15], Claude Opus 4.8 [1], and GLM-5.3-Flash [28]) and the text-only coding agent GLM-5.2 [27]. Because GLM-5.2 lacks native vision to process image inputs directly, it cannot run un-der the baseline settings and is evaluated exclusively with VHarness.
Evaluation Metrics. We evaluate the final outputs using three groups of offline metrics that measure 2D perceptual fidelity, 2D structural fidelity, and 3D geometric accuracy. The 2D perceptual group assesses semantic and feature alignment through SigLIP2 [21] and DINOv2 [16] similarities as well as LPIPS perceptual distance [29]. The 2D structural group measures spatial layout, pixel accuracy, and contour alignment using local and global SSIM [22], Pixel MSE, and Canny edge metrics. The 3D geometric group evaluates mesh reconstruction quality using Uni3D similarity [31] and normalized squared Chamfer distance [6], following the official evaluation protocol of 3DCodeBench [7]. As summarized in Table 1, we evaluate Image-to-HTML and Image-to-SVG with the 2D perceptual and structural metrics, while additionally incorporating the 3D geometric metrics for Image-to-3D (see Appendix B for hyperparameter configurations and metric definitions).
3.3. Main Results and Qualitative Analysis
Consistent Gains Across Multimodal Coding Agents. As shown in Table 1, VHarness consistently improves every evaluation metric across all four multimodal coding agents on all three tasks. Beyond uniform within-model gains, VHarness substantially narrows performance gaps across model tiers on 2D tasks and even reverses them on Image-to-3D. Specifically, GPT-5.5 with VHarness surpass the stronger GPT-5.6-sol baseline across all metrics on Image-to-3D. Moreover, even on GLM-5.3-Flash, which already establishes the strongest baseline across all three tasks, VHarness still delivers substantial further improvements and achieves the best overall performance in every column of Table 1. These results demonstrate that augmenting intrinsic vision with external visual utilities effectively breaks through internal perceptual bottlenecks across multimodal coding agents of varying capabilities.
Empowering Text-Only Coding Agents to Compete with Multimodal Baselines. Equipped with VHarness, the text-only coding agent GLM-5.2 successfully executes all three vision-to-code tasks and achieves highly competitive performance. Specifically, GLM-5.2 with VHarness outperforms the multimodal Claude Opus 4.8 baseline across all three tasks. Moreover, GLM-5.2 with VHarness exceeds the GPT-5.5 baseline on nearly all HTML and SVG metrics, and remains competitive with the stronger GPT-5.6-sol baseline, outperforming it on multiple 2D structural metrics. This finding confirms that intrinsic vision is not a prerequisite for high-fidelity visual coding, as offloading visual perception to external visual utilities en-
ables a strong text-only coding agent to match or exceed multimodal baselines.
Qualitative Analysis. Figure 2 presents qualitative comparisons between the baseline and VHarness across all three tasks. In Image-to-HTML, the baseline fails to capture the circular text-wrapping layout and collapses into a rigid vertical column, whereas VHarness accurately reconstructs the curved text boundary around the central illustration. In Image-to-SVG, the baseline omits fine structural components and distorts the left and lower-right platform contours, while VHarness preserves both global geometry and local details. In Image-to-3D, the baseline degenerates into a simplistic cylinder with radial spikes, whereas VHarness faithfully reproduces the organic trunk curvature and branching structure of the target tree. Across all three domains, VHarness aligns substantially closer with the ground truth in both layout and geometry.
To analyze how VHarness improves code quality across render cycles, Figure 4 shows that VHarness achieves higher DINOv2 scores at matched early render iterations and continues improving after the baseline terminates. Appendix C provides additional models, metrics with analysis.
3.4. Ablation Study
While Table 1 demonstrates consistent gains across diverse coding agents, a fundamental question remains: whether the Vision-as-a-Tool (VaaT) paradigm stays effective as a model's intrinsic vision becomes stronger. To investigate this question, we evaluate a stronger frontier multimodal model, GPT-6-astra, on our 100 cases Image-to-SVG benchmark. Under the w/o VHarness baseline, GPT-6-astra follows the Thinking-with-Images paradigm using its own intrinsic vision, whereas under w/ VHarness, it serves as both the coding agent and the external visual utilities.
As shown in Table 2, the GPT-6-astra baseline (w/o VHarness) already surpasses all models and configurations in Table 1(b) across every metric, reflecting its stronger intrinsic vision. Even at this frontier perceptual level, equipping GPT-6-astra with VHarness still yields consistent improvements across all perceptual and structural metrics. These results confirm that the VaaT paradigm remains effective as a model's intrinsic vision continues to strengthen.
Since VHarness instantiated the VaaT paradigm through five atomic actions, a natural design question is whether atomic actions in VHarness can be simplified into a single unified MLM interface. To investigate this, we evaluate GPT-5.6-sol on the 100-case Image-to-3D benchmark under a Freestyle setting. Specifically, we re-
Implementation Details of VHarness

Figure 3. Illustrative examples of the five atomic actions in VHarness across Image-to-HTML, Image-to-SVG, and Image-to-3D tasks. Using representative visual inputs and highlighted regions on the left, the right panel illustrates the input queries and outputs of each callable action.

Figure 4. Refinement trajectories of GPT-5.6-sol with DINOv2 on Image-to-3D. Dashed segments extend the baseline's final scores beyond termination.
place the five atomic actions with a single general-purpose MCP tool backed by the same Gemini-3.8-Flash model and provide usage examples in the skill instructions (see Appendix A.4), allowing the coding agent to freely query the external MLLM on any target or rendered views using self-formulated natural language prompts.
Inspecting the execution trajectories reveals that, guided by the usage examples, the coding agent under Freestyle spontaneously attempts queries analogous to our atomic actions, such as comparing multi-view discrepancies (diff) or examining local part geometry (inspect). However, without the five atomic actions of VHarness, the coding agent under Freestyle cannot invoke the external MLLM with accuracy and consistency just like it uses standard bash utilities. Consequently, as shown in Table 3,
Table 2. Ablation study with GPT-6-astra on the Image-to-SVG benchmark. Bold marks the better result in each row.
| Metric | w/o VHarness | w/ VHarness |
|---|---|---|
| SigLIP2 ↑ | 0.7368 | 0.7529 |
| DINOv2 ↑ | 0.9428 | 0.9486 |
| LPIPS ↓ | 0.0572 | 0.0473 |
| SSIM 1. ↑ | 0.8903 | 0.8987 |
| SSIM g. ↑ | 0.9229 | 0.9356 |
| Px MSE ↓ | 0.0061 | 0.0051 |
| Edge P ↑ | 0.8337 | 0.8556 |
| Edge R ↑ | 0.8299 | 0.8550 |
| Edge F1 ↑ | 0.8310 | 0.8546 |
Table 3. Ablation study on replacing the five atomic actions with a single free-form MLLM interface (Freestyle) using GPT-5.6-sol on the Image-to-3D benchmark. Bold marks the best result in each row.
| Metric | w/o VHarness | Freestyle | w/ VHarness |
|---|---|---|---|
| SigLIP2 ↑ | 0.6400 | 0.6677 | 0.7212 |
| DINOv2 ↑ | 0.7046 | 0.7481 | 0.8122 |
| LPIPS ↓ | 0.1211 | 0.1028 | 0.0634 |
| SSIM 1. ↑ | 0.9043 | 0.9120 | 0.9296 |
| SSIM g. ↑ | 0.7515 | 0.8150 | 0.9023 |
| Px MSE ↓ | 0.0169 | 0.0111 | 0.0055 |
| Uni3D ↑ | 0.7738 | 0.8255 | 0.8496 |
| Chamfer ↓ | 0.0157 | 0.0070 | 0.0035 |
while access to the external MLLM enables Freestyle to consistently outperform the w/o VHarness baseline across all 2D and 3D metrics, it still falls substantially short of w/ VHarness (e.g., 0.6677 vs. 0.7212 in SigLIP2 and 0.0070 vs. 0.0035 in Chamfer distance). These findings confirm that while offloading visual perception to external visual utilities is beneficial, encapsulating it into well-defined atomic actions is essential for accurate and effective iterative code refinement.
4. Related Work
4.1. Multimodal Agents and Visual Tool Use
Current multimodal coding agents predominantly follow the Thinking-with-Images paradigm [13], where models rely on their own intrinsic vision to inspect visual inputs and intermediate states during execution. Following this paradigm, Visual Sketchpad [9] equips MLLMs with drawing and image-manipulation operations such as cropping and zooming, returning the manipulated images to the model's own visual encoder for re-observation. Similarly, Design2Code [19] prompts MLLMs to directly inspect rendered webpage screenshots and self-revise the generated HTML/CSS code. Building upon this paradigm, recent studies design task-specific workflows to guide iterative code refinement across individual domains. Specifically, DesignRepair [26] couples rendered page analysis with design-guideline retrieval to repair frontend UI code; Chat2SVG [24] combines MLLM-based visual checks with diffusion-guided optimization to refine vector graphics templates; and BlenderAlchemy [10] iteratively edits Blender Python scripts by evaluating rendered 3D scenes with vision-language models. However, because visual interpretation in these approaches ultimately depends on the agent's intrinsic perception, their output quality remains strictly bounded by internal perceptual limits, while such rigid, task-specific workflows fail to generalize across diverse coding tasks.
Meanwhile, text-only agents must rely on external modules to process visual inputs. Early frameworks coordinate fixed, specialized vision models such as image captioners, OCR engines, and layout or object detectors: MM-REACT [25], Visual ChatGPT [23], and HuggingGPT [18] invoke these domain experts through natural language orchestration, whereas VISPROG [8] and ViperGPT [20] compose predefined vision APIs by generating executable Python programs. More recently, VQA-oriented decoupled pipelines such as SeeingEye [30] and DRP [11] pair a text-only reasoner with a multimodal translator or observer to distill intermediate descriptions or query visual details during multi-step reasoning. Nevertheless, fixed specialist modules remain restricted to narrow perceptual primitives, while VQA-oriented pipelines are designed exclusively for
static image comprehension and cannot support the iterative artifact verification and closed-loop code refinement required by agentic coding. To overcome these limitations, our Vision-as-a-Tool (VaaT) paradigm reframes an external MLLM as general-purpose callable visual utilities, enabling text-only coding agents to offload visual perception entirely while allowing multimodal coding agents to dynamically augment their intrinsic vision on demand across diverse coding tasks.
4.2. Agentic Coding and Vision-to-Code Generation
Multimodal agentic coding requires agents to interleave code generation with visual reasoning to analyze inputs and verify rendered artifacts, with vision-to-code generation serving as a quantitatively verifiable testbed. Existing studies have explored this vision-to-code problem across diverse artifact modalities. In 2D webpage engineering, early work such as pix2code [2] and Design2Code [19] established benchmarks for translating screenshots into HTML and CSS, followed by methods incorporating rendered visual feedback for iterative code refinement [3, 4, 12]. Moving from structured DOM layouts to continuous vector primitives, StarVector [17] synthesizes Scalable Vector Graphics (SVG) code directly from raster images, while in 3D procedural modeling, CAD-Coder [5] and 3DCodeBench [7] generate modeling scripts from multi-view image references. Despite this progress, prior methods remain confined to individual artifact modalities with task-specific designs. Moreover, existing 2D benchmarks such as Design2Code and standard SVG datasets feature relatively simple layouts and icons that fall short of real-world complexity, on which both proprietary MLLMs and lightweight open-source models already achieve near-ceiling performance. To better demonstrate the effectiveness of VHarness across HTML, SVG, and 3D tasks, we curate substantially more challenging and realistic test cases spanning diverse real-world visual scenarios (see Appendix A for dataset details and representative cases).
5. Conclusion and Limitations
Conclusion. We presented Vision-as-a-Tool (VaaT), a paradigm for multimodal agentic coding that reframes an external MLLM as general-purpose callable visual utilities. Drawing inspiration from traditional software engineering, where developers rely on shell and debugging primitives to search, inspect, assert, and compare files, we instantiated this paradigm in VHarness by extending this philosophy to the visual domain via five intuitive atomic actions. Across Image-to-HTML, Image-to-SVG, and Image-to-3D tasks, VHarness consistently improves the visual and geometric fidelity of multimodal coding agents, while enabling text-only coding agents to execute vision-to-code tasks and achieve performance competitive with native multimodal baselines. Together, these results demonstrate that decoupling visual perception into on-demand callable utilities provides a general and scalable foundation for multimodal agentic coding.
Limitations. While effective across diverse vision-to-code tasks, our study primarily evaluates static targets (single-page interfaces, standalone vector graphics, and individual 3D objects) rather than dynamic multi-state interactions. Extending VHarness to interactive applications and temporal 3D scenes remains an important future direction.
References
[1] Anthropic. Introducing Claude Opus 4.8. Anthropic news, 2026. Accessed October 2026. 2, 5, 22
[2] Tony Beltramelli. pix2code: Generating code from a graphical user interface screenshot. In Proceedings of the ACM SIGCHI Symposium on Engineering Interactive Computing Systems, EICS 2018, Paris, France, June 19-22, 2018, pages 3:1–3:6. ACM, 2018. 8
[3] Yang Chen, Yufan Shen, Wenxuan Huang, Sheng Zhou, Qunshu Lin, Xinyu Cai, Zhi Yu, Jiajun Bu, Botian Shi, and Yu Qiao. Learning only with images: Visual reinforcement learning with reasoning, rendering, and visual feedback. CoRR, abs/2507.20766, 2025. 8
[4] Jie Deng, Kaichun Yao, and Libo Zhang. Visrefiner: Learning from visual differences for screenshot-to-code generation. CoRR, abs/2602.05998, 2026. 8
[5] Anna C. Doris, Ferdous Alam, Amin Heyrani Nobari, and Faez Ahmed. Cad-coder: An open-source vision-language model for computer-aided design code generation. Journal of Mechanical Design, 148(7):071702, 2026. 8
[6] Haoqiang Fan, Hao Su, and Leonidas J. Guibas. A point set generation network for 3d object reconstruction from a single image. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 2463–2471. IEEE Computer Society, 2017. 6, 21
[7] Yipeng Gao, Lei Shu, Genzhi Ye, Xi Xiong, Ameesh Makadia, Meiqi Guo, Laurent Itti, and Jindong Chen. 3dcodebench: Benchmarking agentic procedural 3d modeling via code. CoRR, abs/2606.01057, 2026. 2, 4, 6, 8, 11, 21
[8] Tanmay Gupta and Aniruddha Kembhavi. Visual programming: Compositional visual reasoning without training, 2022. 8
[9] Yushi Hu, Weijia Shi, Xingyu Fu, Dan Roth, Mari Ostendorf, Luke Zettlemoyer, Noah A. Smith, and Ranjay Krishna. Visual sketchpad: Sketching as a visual chain of thought for multimodal language models. In Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024. 2, 8
[10] Ian Huang, Guandao Yang, and Leonidas J. Guibas. Blender-alchemy: Editing 3d graphics with vision-language models. In Computer Vision - ECCV 2024 - 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part LXXXIX, pages 297–314. Springer, 2024. 2, 8
[11] Hongrui Jia, Chaoya Jiang, Shikun Zhang, and Wei Ye. Mitigating visual context degradation in large multimodal models: A training-free decoupled agentic framework, 2026. 2, 8
[12] Yuhang Li, Chenchen Zhang, Ruilin Lv, Ao Liu, Ken Deng, Yuanxing Zhang, Jiaheng Liu, and Bo Zhou. Relook: Vision-grounded RL with a multimodal LLM critic for agentic web coding. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2026, San Diego, California, United States, July 2-7, 2026, pages 25471–25485. Association for Computational Linguistics, 2026. 8
[13] OpenAI. Thinking with Images. OpenAI blog, 2025. Published April 16, 2025. 2, 8
[14] OpenAI. Introducing GPT-5.5. OpenAI blog, 2026. Accessed October 2026. 2, 5, 22
[15] OpenAI. GPT-5.6: Frontier intelligence that scales with your ambition. OpenAI blog, 2026. Accessed October 2026. 2, 5, 22
[16] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jégou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. Dinov2: Learning robust visual features without supervision. Trans. Mach. Learn. Res., 2024, 2024. 6, 21
[17] Juan A. Rodríguez, Abhay Puri, Shubham Agarwal, Isam H. Laradji, Pau Rodríguez, Sai Rajeswar, David Vázquez, Christopher Pal, and Marco Pedersoli. Starvector: Generating scalable vector graphics code from images and text. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025, pages 16175–16186. Computer Vision Foundation / IEEE, 2025. 8
[18] Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. Hugginggpt: Solving AI tasks with chatgpt and its friends in hugging face. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. 8
[19] Chenglei Si, Yanzhe Zhang, Ryan Li, Zhengyuan Yang, Ruibo Liu, and Diyi Yang. Design2code: Benchmarking multimodal code generation for automated front-end engineering. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL 2025 - Volume 1: Long Papers, Albuquerque, New Mexico, USA, April 29 - May 4, 2025, pages 3956–3974. Association for Computational Linguistics, 2025. 2, 3, 8, 11
[20] Didac Surís, Sachit Menon, and Carl Vondrick. Vipergpt: Visual inference via python execution for reasoning. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 11854–11864. IEEE, 2023. 2, 8
[21] Michael Tschannen, Alexey A. Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier J. Hénaff, Jeremiah Harmsen, Andreas Steiner, and Xiaohua Zhai. Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features. CoRR, abs/2502.14786, 2025. 6
[22] Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE Trans. Image Process., 13(4): 600–612, 2004. 6, 21
[23] Chenfei Wu, Shengming Yin, Weizhen Qi, Xiaodong Wang, Zecheng Tang, and Nan Duan. Visual chatgpt: Talking, drawing and editing with visual foundation models, 2023. 8
[24] Ronghuan Wu, Wanchao Su, and Jing Liao. Chat2svg: Vector graphics generation with large language models and image diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025, pages 23690–23700. Computer Vision Foundation / IEEE, 2025. 2, 8
[25] Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Ehsan Azarnasab, Faisal Ahmed, Zicheng Liu, Ce Liu, Michael Zeng, and Lijuan Wang. Mm-react: Prompting chatgpt for multimodal reasoning and action, 2023. 2, 8
[26] Mingyue Yuan, Jieshan Chen, Zhenchang Xing, Aaron Quigley, Yuyu Luo, Tianqi Luo, Gelareh Mohammadi, Qinghua Lu, and Liming Zhu. Designrepair: Dual-stream design guideline-aware frontend repair with large language models. In 47th IEEE/ACM International Conference on Software Engineering, ICSE 2025, Ottawa, ON, Canada, April 26 - May 6, 2025, pages 2483–2494. IEEE, 2025. 2, 8
[27] Z.ai. GLM-5.2. Official developer documentation, 2026. Accessed October 2026. 2, 5, 22
[28] Z.ai. GLM-5.3-Flash/FlashX. Official developer documentation, 2026. Accessed October 11, 2026. 2, 5, 22
[29] Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 586–595. Computer Vision Foundation / IEEE Computer Society, 2018. 6, 21
[30] Weijia Zhang, Zijia Liu, Haoru Li, Haoqi Chen, and Jiaxuan You. SeeingEye: Agentic information flow unlocks multimodal reasoning in text-only LLMs. arXiv preprint arXiv:2510.25092, 2025. 2, 8
[31] Junsheng Zhou, Jinsheng Wang, Baorui Ma, Yu-Shen Liu, Tiejun Huang, and Xinlong Wang. Uni3d: Exploring unified 3d representation at scale. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. 6, 21
A. Implementation Details of VHarness
A.1. Benchmark Curation and Execution Environments
On existing visual coding benchmarks such as Design2Code [19], which are dominated by simple grid templates or basic icons, modern MLLMs already achieve very high scores, leaving limited room to differentiate perceptual capabilities. To rigorously evaluate VHarness, we curate 100 high-complexity test cases each for Image-to-HTML and Image-to-SVG from diverse publicly available sources, paired with 100 official test cases from 3DCodeBench [7] for Image-to-3D (Figures 6 and 7). All experiments run in isolated Linux workspaces with Python 3.12, pre-installed scientific/vision libraries (numpy, scipy, PIL, cv2, imageio, matplotlib, scikit-image, trimesh), and on-demand PyPI package installation:
-
Image-to-HTML. To comprehensively evaluate layout reconstruction across diverse visual media, we collect 100 cases from open-source datasets and public repositories spanning multi-section webpages, editorial magazines, promotional posters, and presentation slides (Figure 6, top). Cases are selected by structural complexity, prioritizing non-trivial reading flows, multi-column asymmetric grids, dense typographic hierarchies, and irregular text wrapping. Non-textual visual assets (illustrations, photos, icons) are verified item-by-item through human inspection to ensure accurate cropping. Each workspace provides target.png, the verified assets under ./assets/, and provided_assets.json listing only filenames and native pixel dimensions with all spatial coordinates stripped (Figure 5). The agent authors a self-contained code.html with a single root container (<div class="page">), which Playwright/Chromium screenshots into render.png.
-
Image-to-SVG. We collect 100 graphic designs from publicly available image and design platforms (e.g., Magnific and open-source vector/illustration galleries; Figure 6, bottom), filtering candidates by geometric and compositional complexity to retain multi-layered primitives, intricate Bézier contours, fine-grained local details, and rich color gradients. Each workspace provides only target.png without external assets; <image> tags, base64 data URIs, and traced bitmaps are strictly prohibited. The agent authors a pure-vector code.svg matching the target canvas, which headless Chromium rasterizes into render.png.
-
Image-to-3D. We randomly sample 100 official test cases from 3DCodeBench [7] (Fig-
ure 7) under the identical evaluation protocol to ensure strict benchmark consistency. Each workspace contains four canonical reference views (target_005/015/025/035.png at azimuths 45°, 135°, 225°, 315° and 30° elevation) and a read-only render.py. The agent authors a Blender 5.0 Python script (code.py) using bpy, bmesh, and mathutils with procedural Principled BSDF materials; running python render.py in headless Blender 5.0.1 renders the four matching views and exports the .glb mesh.
A.2. 3DCodeBench Ground-Truth Alignment
In the official release of 3DCodeBench [7], the provided input images (3DCodeBench/images) do not match the corresponding .glb meshes and .py scripts in several cases, as documented in Issue #2 of the official repository. To ensure that the input reference views strictly correspond to the ground-truth 3D object, we use the open-source material Python scripts (3DCodeData/<Name>_000) from the official Hugging Face dataset to generate the ground-truth 3D .glb artifacts in headless Blender 5.0.1, and capture the four canonical ground-truth views (45°, 135°, 225°, and 315°) directly from those rendered 3D artifacts under the shared camera and lighting rig.
A.3. VHarness and Implementation skills
FastMCP Server. VHarness is implemented as a persistent Model Context Protocol (MCP) server using FastMCP, exposing the five atomic visual actions (transcribe, grep, inspect, align, and diff) as callable tools under the mcp__atomic__* namespace.
A.4. System Prompts and Agent Skills
We present the exact prompts and skill instructions used in our experiments: Figures 9 and 10 show the backend prompts for the five atomic visual actions in VHarness, while Figures 11 provide the agent skill instructions across the three vision-to-code tasks and the Freestyle ablation.
Visual Assets for Image-to-HTML
Ground truth
Collected visual assets

Visual Assets for Image-to-HTML
Ground truth
Collected visual assets

Figure 5. Examples of workspace inputs provided to the coding agent in Image-to-HTML. For each test case, the workspace supplies the target webpage screenshot (Visual Input, target.png, left), the pre-extracted graphic files stored under ./assets/(Visual Assets, middle), and the JSON manifest (provided_assets.json, right) specifying each asset's filename, relative path, and native pixel dimensions without spatial coordinates or layout metadata.
Image-to-HTML

Image-to-SVG

Figure 6. Representative benchmark test cases for Image-to-HTML (top) and Image-to-SVG (bottom).
Image-to-3D

Figure 7. Representative benchmark test cases in 3DCodeBench.
Implementation Details of VHarness

Figure 8. Input-output examples of the five atomic visual actions (transcribe, grep, inspect, align, and diff) implemented in VHarness.
Atomic Action 1: grep
This is a {w}x{h}px image. Find EVERY element that matches this query: "{query}". For each match return its category and a tight bounding box.
Use your standard bounding-box convention: [y_min, x_min, y_max, x_max] with each value NORMALIZED to the 0-1000 range (NOT pixels). Reply STRICT JSON array only: [{"category": "text|photo|logo|icon|chart|illustration|shape|other", "bbox": [y_min, x_min, y_max, x_max], "text": "<exact text if category=text, else empty>","confidence": <0.1>}]
Return [] if nothing matches.
Atomic Action 2: inspect
[format = "text"]
Transcribe EXACTLY the text visible in this image, preserving line breaks and reading order. Then, on a NEW final line, report this text's TYPOGRAPHY, choosing from these fixed vocabularies:
family: serif | slab-serif | sans-geometric | sans-humanist | sans-grotesque | monospace | display | script
weight: thin | light | regular | medium | semibold | bold | black
width: condensed | normal | expanded slant: italic | normal
and the text's INK colour as #RRGGBB (the colour of the letters themselves, NOT the background). Format that final line EXACTLY as:
[type] family: <f> · weight: <w> · width: <wd> · slant: <s> · text-colour: #RRGGBB
Output ONLY the transcribed text, then that single [type] line. No other commentary.
[format = "image"]
Describe this visual element in detail: what it depicts, its colours, shapes, internal structure, and any embedded text. Be concrete.
Figure 9. Exact backend prompts for the single-image perception actions (grep, and inspect).
Atomic Action 3: align
Does the following text match the text/content shown in this image region? Judge by meaning + wording, ignore font.
Reply STRICT JSON only: {"match": true|false}.
Text: {text}
Atomic Action 4: transcribe
[HTML / SVG]
Your ONLY job is to recover the page SKELETON that the builder must write BEFORE inserting any text, image, number, or other content. Decide only: what the page's major regions are, in what order they read, which regions sit side by side, and how content flows inside each region. This is a real document structure, not an element-placement plan. You do NOT write code, and you do NOT output any coordinates, sizes, colours, or fonts.
Output the SKELETON as a STRUCTURE TREE in STRICT JSON, and nothing else:
{"layout": "flow|row|grid", "children": [ ... ]}
where each entry in "children" is ONE of:
-
a LEAF referencing a located element by its id: {"block": "block_N"} or {"graphic": "asset_NN"}
-
a nested REGION CONTAINER: {"layout": "flow|row|grid", "children": [ ... ]} (a "grid" container ALSO carries "rows": <int> and "cols": <int>)
[3D]
You are given {n} rendered views of ONE object on a turntable: azimuth {az} degrees, in that order, same camera height and distance. They are the SAME object seen from different sides -- a single view loses depth, so CROSS-CHECK the views to decide the real 3D shape (a circle in one view can be a sphere, a disc, or a cylinder seen end-on; the other views disambiguate it). Your ONLY job is to recover the 3D object's structural decomposition before any code is written. Identify the major geometric parts, their primitive shapes, relative spatial arrangement, proportions, and observed surface colours/materials across views. You do NOT write code. Output the 3D structure as a hierarchical JSON specification of parts, spatial relations, and material attributes.
Atomic Action 5: diff
[Prominent-Ranked Bounding-Box and Crop Comparison]
Image 1 = the REFERENCE. Image 2 = the CANDIDATE reproduction of it. Report the ways the candidate DIFFERS from the reference, RANKED BY VISUAL PROMINENCE -- the order a viewer notices them: overall STRUCTURE / layout / architecture and the most prominent elements FIRST; finer, tail-end details LAST. Report macro before micro; do NOT let trivial micro details precede or crowd out the macro ones (you MAY still list micro differences, at the end). Cover: layout / column organisation, presence or absence of prominent elements, dominant / background colours, obvious size or prominence mismatches, text or label DOUBLING / GHOSTING, and overall faithfulness.{focus}
Reply STRICT JSON array only, MOST-PROMINENT FIRST: [{"where":"<element / area>","what":"<the difference>","prominence":"high|medium|low"}]. Return [] if the two match.
[Pairwise Bounding-Box and Crop Comparison]
Image 1 = the TARGET. Image 2 = a REPRODUCTION of it (a render at the SAME canvas size). {text} shapes & geometry, colours, layout & proportions, object presence / completeness, and depth / occlusion. {mode} For EACH mismatch give a PAIR of boxes, because a misrendered element does NOT sit at the same coordinates in the two images:
-
"tag": 2-5 words naming the element (e.g. "blue cube", "pie chart", "tilted Step 03 label").
-
"target_bbox": where that element is in the TARGET (image 1),
[y_min,x_min,y_max,x_max] normalized 0-1000.
- "render_bbox": where the reproduction's attempt at it is in the RENDER (image 2), same format; use null if it is MISSING from the render.
Reply STRICT JSON array only: [{"tag": "...","target_bbox": [y, x, y, x], "render_bbox": [y, x, y, x]}. Return [] if the content already matches the target well.
Figure 10. Exact backend prompts for the artifact verification actions (align, transcribe and diff).
Baseline Skill 1: Image-to-HTML (w/o VHarness)
Reproduce the page shown in ./target.png as ONE self-contained HTML file ./code.html. Every graphic on the page is already provided in ./assets/ - see provided_assets.json for the file list and pixel sizes - place them with <img> and size them with CSS.
Do this hands-on: WRITE ./code.html directly with the Write tool and iterate - do NOT present a plan or ask for approval; there is no one to approve it.
You CAN SEE - use Read on ./target.png to look at the reference.
Work in TWO PASSES: FIRST Write the skeleton - the <div class="page"> with empty containers for the page's regions, in reading order, nothing else. THEN fill each region with its content. Within a region the content flows: each text block and image follows the one before it - do NOT put absolute positioning on a text block or an image itself. What you measure tells you which region something belongs to and how big it is, not where to put it on the page.
In BOTH passes, all page content lives inside a single top-level <div class="page"> - the renderer screenshots THAT element, so anything outside it is invisible - at the reference's width; its height comes from its content. SELF-CONTAINED: inline <style>, no external CSS/JS, no web fonts. Build the page as a document, not as a canvas: a sequence of regions in reading order, each sized by what it holds. Reproduce layout, blocks, colours and TEXT (real text nodes: right content, size, weight, placement). Every readable text must appear exactly once and be opaque - never hide text to fake a match. Take images only from ./assets/ - do not crop or screenshot the reference, and do not download images; anything not in ./assets/ you may draw with CSS or generate with code.
Then check yourself and ITERATE until it matches:
-
run 'python3 render.py' (Bash) - it screenshots your .page to ./render.png at the reference's size. Use 'python3' for any script you write, and keep every path relative to this workspace.
-
Read ./render.png and compare it to ./target.png.
-
fix ./code.html with Edit to close the gaps.
-
repeat render -> compare -> refine until your render is as close to the reference as you can make it.
Then stop. The final ./code.html is your answer.
Baseline Skill 2: Image-to-SVG (w/o VHarness)
Reproduce the image shown in ./target.png as ONE self-contained, PURE-VECTOR SVG file ./code.svg.
Do this hands-on: WRITE ./code.svg directly with the Write tool and iterate - do NOT present a plan or ask for approval; there is no one to approve it.
You CAN SEE - use Read on ./target.png to look at the reference.
Author ./code.svg with Write: a standalone '<svg>' document with an explicit width/height (or viewBox) matching the reference. PURE VECTOR ONLY - no <image>, no embedded raster / base64, no external files or web fonts. Reproduce layout, shapes, strokes, fills, gradients and TEXT (as real <text> elements, not outlines).
Then check yourself and ITERATE until it matches:
-
run 'python render.py' (Bash) - it rasterizes your ./code.svg to ./render.png at the reference's size.
-
Read ./render.png and compare it to ./target.png.
-
fix ./code.svg with Edit to close the gaps (positions, sizes, colours, text content, font size/weight, spacing).
-
repeat render -> compare -> refine until your render is as close to the reference as you can make it.
Then stop. The final ./code.svg is your answer.
Figure 11. Exact skill instructions for the w/o VHarness baseline on Image-to-HTML and Image-to-SVG.
Baseline Skill 3: Image-to-3D (w/o VHarness)
Reproduce the 3D object shown in the 4 reference views as a single Blender 5.0 Python script ./code.py.
Do this hands-on: WRITE ./code.py directly with the Write tool and iterate -- do NOT present a plan or ask for approval; there is no one to approve it.
You CAN SEE -- use Read on ./target_005.png, ./target_015.png, ./target_025.png and ./target_035.png. They are the SAME object at four canonical turntable angles (azimuth 45 / 135 / 225 / 315 degrees, camera slightly above the object), rendered IN FULL COLOUR with their real materials.
Author ./code.py with Write: a Blender 5.0 bpy script that builds the object(s) procedurally (primitives, meshes, modifiers, transforms). Leave the finished geometry in the scene -- do NOT add camera / light / render / export code (the harness supplies its own rig).
Reproduce the MATERIALS / COLOUR too, not just the shape. Give each part a procedural Principled BSDF material with the colour you see in the reference, e.g.:
m = bpy.data.materials.new('leaf'); m.use_nodes = True
b = m.node_tree.nodes['Principled BSDF']
b.inputs['Base Color'].default_value = (0.30, 0.55, 0.15, 1) # r,g,b in 0..1
b.inputs['Roughness'].default_value = 0.6
obj.data.materials.append(m)
Assign a DIFFERENT material per part (e.g. leaves vs trunk, seat vs legs) so multi-colour objects look right. No image textures / external files -- colour comes from materials only.
Then check yourself and ITERATE until it matches:
-
run
python render.py(Bash) -- it renders your ./code.py to ./render_005.png, ./render_015.png, ./render_025.png and ./render_035.png (the SAME four angles, in colour). -
Read those 4 renders and compare each to the matching ./target_0XX.png.
-
fix ./code.py with Edit to close the gaps (proportions, parts, counts, orientation, and the base COLOUR of each part).
-
repeat render -> compare -> refine until your render is as close to the reference as you can make it from all four angles, in both shape and colour.
Then stop. The final ./code.py is your answer.
Figure 12. Exact skill instructions for the w/o VHarness baseline on Image-to-3D.
Ablation Skill: Image-to-HTML (Freestyle)
Reproduce the page shown in ./target.png as ONE self-contained HTML file ./code.html. Every graphic on the page is already provided in ./assets/ - see provided_assets.json for the file list and pixel sizes - place them with <img> and size them with CSS.
Do this hands-on: WRITE ./code.html directly with the Write tool and iterate - do NOT present a plan or ask for approval; there is no one to approve it.
You CAN SEE - use Read on ./target.png to look at the reference.
Work in TWO PASSES: FIRST Write the skeleton - the <div class="page"> with empty containers for the page's regions, in reading order, nothing else. THEN fill each region with its content. Within a region the content flows: each text block and image follows the one before it - do NOT put absolute positioning on a text block or an image itself. What you measure tells you which region something belongs to and how big it is, not where to put it on the page.
In BOTH passes, all page content lives inside a single top-level <div class="page"> - the renderer screenshots THAT element, so anything outside it is invisible - at the reference's width; its height comes from its content. SELF-CONTAINED: inline <style>, no external CSS/JS, no web fonts. Build the page as a document, not as a canvas: a sequence of regions in reading order, each sized by what it holds. Reproduce layout, blocks, colours and TEXT (real text nodes: right content, size, weight, placement). Every readable text must appear exactly once and be opaque - never hide text to fake a match. Take images only from ./assets/ - do not crop or screenshot the reference, and do not download images; anything not in ./assets/ you may draw with CSS or generate with code.
Then check yourself and ITERATE until it matches:
-
run python3 render.py (Bash) - it screenshots your .page to ./render.png at the reference's size. Use python3 for any script you write, and keep every path relative to this workspace.
-
Read ./render.png and compare it to ./target.png.
-
fix ./code.html with Edit to close the gaps.
-
repeat render -> compare -> refine until your render is as close to the reference as you can make it.
Then stop. The final ./code.html is your answer.
You also have access to a unified, general-purpose multimodal assistant (Gemini-3.8-flash) via the MCP tool mcp_raw_mllm_call, which you may use as an auxiliary visual tool to help complete this task (e.g., observing visual details, estimating layout/geometry, and so on)
Pass request as an OpenAI-style Chat object: {"messages": [{"role": "user", "content": ["{type": "text", "text": "<your question>"}], "type": "image_url", "image_url": {"url": "./target.png"}]}], "max_tokens": 4096}.
You may attach one or more workspace images in content using relative file paths (such as ./target.png, ./render.png, or files under ./assets/; do NOT use file:// URIs or external URLs).
The tool executes your request as-is and returns the raw Chat completion envelope; you decide when and how to query it during your workflow.
Figure 13. Complete skill instructions for the Freestyle ablation on Image-to-HTML.
Ablation Skill: Image-to-3D (Freestyle)
Reproduce the 3D object shown in the 4 reference views as a single Blender 5.0 Python script ./code.py.
Do this hands-on: WRITE ./code.py directly with the Write tool and iterate -- do NOT present a plan or ask for approval; there is no one to approve it.
You CAN SEE -- use Read on ./target_005.png, ./target_015.png, ./target_025.png and ./target_035.png. They are the SAME object at four canonical turntable angles (azimuth 45 / 135 / 225 / 315 degrees, camera slightly above the object), rendered IN FULL COLOUR with their real materials.
Author ./code.py with Write: a Blender 5.0 bpy script that builds the object(s) procedurally (primitive, meshes, modifiers, transforms). Leave the finished geometry in the scene -- do NOT add camera / light / render / export code (the harness supplies its own rig).
Reproduce the MATERIALS / COLOUR too, not just the shape. Give each part a procedural Principled BSDF material with the colour you see in the reference, e.g.:
m = bpy.data.materials.new('leaf'); m.use_nodes = True
b = m.node_tree.nodes['Principled BSDF']
b.inputs['Base Color'].default_value = (0.30, 0.55, 0.15, 1) # r,g,b in 0..1
b.inputs['Roughness'].default_value = 0.6
obj.data.materials.append(m)
Assign a DIFFERENT material per part (e.g. leaves vs trunk, seat vs legs) so multi-colour objects look right. No image textures / external files -- colour comes from materials only.
Then check yourself and ITERATE until it matches:
-
run python render.py (Bash) -- it renders your ./code.py to ./render_005.png, ./render_015.png, ./render_025.png and ./render_035.png (the SAME four angles, in colour).
-
Read those 4 renders and compare each to the matching ./target_0XX.png.
-
fix ./code.py with Edit to close the gaps (proportions, parts, counts, orientation, and the base COLOUR of each part).
-
repeat render -> compare -> refine until your render is as close to the reference as you can make it from all four angles, in both shape and colour.
Then stop. The final ./code.py is your answer.
You also have access to a unified, general-purpose multimodal assistant (Gemini-3.8-flash) via the MCP tool mcp_raw_mllm_call, which you may use as an auxiliary visual tool to help complete this task (e.g., observing visual details, estimating layout/geometry, and so on)
Pass request as an OpenAI-style Chat object: {"messages": [{"role": "user", "content": [{"type": "text", "text": "<your question>"}, {"type": "image_url", "image_url": {"url": "./target.png"]}]}, "max_tokens": 4096}.
You may attach one or more workspace images in content using relative file paths (such as ./target.png, ./render.png, or files under ./assets/; do NOT use file:// URIs or external URLs).
The tool executes your request as-is and returns the raw Chat completion envelope; you decide when and how to query it during your workflow.
Figure 14. Complete skill instructions for the Freestyle ablation on Image-to-3D.
B. Detailed Experimental Setup
B.1. Model and Hyperparameter Configurations
To ensure a fair comparison across all tasks and model families, all coding agents are executed within the same Claude Code CLI harness with a fixed context window of 200K tokens (with automatic context compaction enabled for long multi-turn trajectories). Table 4 summarizes the model configurations and inference hyperparameters used in our main experiments and same-model ablation study.
Due to inference budget constraints, we evaluate GPT-6-astra with low reasoning effort, rather than the high setting used in the main experiments. Despite using low reasoning effort, the GPT-6-astra baseline achieves better scores than every configuration in Table 1(b) on all metrics reported in Table 2, indicating strong visual-coding performance even under this reduced-reasoning setting. The primary purpose of the experiment is to compare GPT-6-astra with and without VHarness to verify whether the Vision-as-a-Tool (VaaT) paradigm stays effective as a model's intrinsic vision becomes stronger.
B.2. Evaluation Metric Details
2D Perceptual Fidelity Metrics. We evaluate semantic and perceptual alignment using three complementary metrics:
-
SigLIP2 (↑). We extract dense patch embeddings using google/siglip2-so400m-patch16-naflex. To evaluate high-resolution webpages and graphics without downsampling distortion, both the target and rendered images are partitioned into overlapping 448 × 448 tiles with a stride of 224 pixels. Overlapping patch observations are de-duplicated at the global pixel grid, weighted by valid non-padded pixel area, and compared via cosine similarity.
-
DINOv2 (↑). We extract tile-level [CLS] feature vectors using facebook/dinov2-large [16] over overlapping 448 × 448 tiles with a stride of 224 pixels at native resolution, and compute the mean cosine similarity across all corresponding tile pairs.
-
LPIPS (↓). We compute the Learned Perceptual Image Patch Similarity distance [29] using the AlexNet backbone (net_type="alex") with input RGB tensors normalized to [0,1] (normalize=True). Lower values indicate higher perceptual similarity.
2D Structural Fidelity Metrics. We measure spatial layout, pixel accuracy, and contour alignment using four structural metrics:
- Local SSIM (SSIM 1., ↑). We compute the
standard windowed Structural Similarity Index [22] across RGB channels at native resolution with data_range=255, measuring local luminance, contrast, and structural consistency.
-
Global SSIM (SSIM g., ↑). To capture whole-canvas luminance and contrast consistency across large layout blocks, we compute the SSIM formula over the full-image mean, variance, and covariance statistics per RGB channel and average the resulting scores across the three channels.
-
Pixel MSE (Px MSE, ↓). We normalize RGB pixel intensities to [0, 1] by dividing by 255 and compute the mean squared error across all pixels and color channels.
-
Canny Edge Precision, Recall, and F1 (Edge P / R / F1, ↑). For Image-to-HTML and Image-to-SVG, we convert both the target and rendered images to grayscale and extract structural contours using a Canny edge detector. To account for minor sub-pixel or anti-aliasing shifts, predicted and reference edge maps are matched within a small spatial neighborhood tolerance to compute Edge Precision, Edge Recall, and their harmonic mean (Edge F1).
3D Geometric Accuracy Metrics. Following the official evaluation protocol of 3DCodeBench [7], we evaluate the exported .glb mesh against the ground-truth mesh by deterministically sampling N = 8,192 surface points (and corresponding surface RGB colors) from each mesh and normalizing each point cloud into the unit sphere by subtracting its centroid and dividing by its maximum Euclidean radius:
-
Uni3D (↑). We encode the normalized 8,192-point clouds (concatenating 3D coordinates and RGB values into 6D point features) using the pretrained Uni3D-giant point-cloud encoder (eva_giant_patch14_560 backbone, 1,024-dimensional embedding) [31] and compute the cosine similarity between the predicted and ground-truth 3D embeddings.
-
Chamfer Distance (↓). We compute the bidirectional squared Chamfer distance [6] between the unit-sphere normalized point clouds P and Q:
Table 4. Summary of model configurations and inference hyperparameters across the main experiments and ablation study. All coding agents operate under a fixed 200K context window.
| Model | Context Window | Reasoning Effort |
|---|---|---|
| GPT-5.5 [14] | 200K | high |
| GPT-5.6-sol [15] | 200K | high |
| Claude Opus 4.8 [1] | 200K | high |
| GLM-5.2 [27] | 200K | high |
| GLM-5.3-Flash [28] | 200K | high |
| GPT-6-astra (Ablation) | 200K | low |
| Gemini-3.8-Flash () | 200K | high |
evaluated across the four canonical yaw rotations and taking the minimum distance, matching the official 3DCodeBench shape scorer.
C. Computational Cost, Same-Subset Evaluation, and Trajectory Analysis
C.1. Token Consumption and Action Invocation Statistics
Table 5 reports the average output token consumption per case by the coding agent . Importantly, neither w/o VHarness nor w/ VHarness imposes a minimum iteration count or forced token budget; both terminate once the rendered artifact is judged visually complete. Under w/o VHarness, stopping relies solely on intrinsic vision, which frequently overlooks fine-grained layout shifts, missing vector contours, or 3D geometric misalignments and terminates prematurely. Under w/ VHarness, external visual utilities continuously surface remaining discrepancies via diff and inspect, driving sustained refinement.
Table 6 and Figure 15 break down the atomic action invocations of the text-only agent GLM-5.2 across tasks, while Table 7 compares native harness tool calls against total VHarness actions across all evaluated models.
C.2. Evaluation on the Shared 50-Case Subset
In Table 1 of the main paper, the text-only agent GLM-5.2 is evaluated on a random 50-case subset per task due to inference budget constraints, whereas multimodal agents are evaluated on all 100 cases. To provide a strictly aligned comparison on the exact same test instances, Table 8 reports the results of GPT-5.5, GPT-5.6-sol, and GLM-5.2 on this shared 50-case subset, where all relative rankings and conclusions from the main text hold consistently.
C.3. Quantitative Refinement Dynamics on Image-to-3D
Figure 16 tracks the mean DINOv2 and global SSIM scores on Image-to-3D for GPT-5.5 and GPT-5.6-sol, where dashed horizontal lines extend the w/o VHarness scores after early termination. Across all four plots, w/ VHarness achieves steeper gains at matched early iterations and continues improving well beyond the point where the baseline plateaus. This demonstrates that VHarness achieves higher per-iteration refinement efficiency, extracting larger quality gains per render cycle while effectively converting additional token compute into sustained visual and geometric improvements rather than blind trial-and-error.
C.4. Qualitative Refinement Trajectories
Figure 17 visualizes multi-step refinement trajectories of the text-only agent GLM-5.2 with VHarness on Image-to-HTML (Case 079, top) and Image-to-SVG (Case 021, bottom). Moving from the initial draft (Render #1) to the final output, the red bounding boxes and bottom zoomed-in callouts illustrate how iterative feedback from diff, grep, and inspect guides the agent to progressively fix layout structure, vector geometry, and fine local details.
Table 5. Average recorded output tokens per case by the coding agent across Image-to-HTML, Image-to-SVG, and Image-to-3D.
| Model | VHarness | HTML | SVG | 3D |
|---|---|---|---|---|
| GPT-5.5 | w/o | 52,792 | 30,983 | 37,886 |
| w/ | 173,374 | 195,148 | 237,750 | |
| GPT-5.6-sol | w/o | 23,825 | 16,301 | 17,918 |
| w/ | 62,005 | 64,841 | 104,543 | |
| Claude Opus 4.8 | w/o | 14,132 | 14,153 | 14,522 |
| w/ | 62,859 | 82,688 | 92,321 | |
| GLM-5.2 | w/ | 685,988 | 1,971,312 | 164,741 |
| GLM-5.3-Flash | w/o | 148,404 | 198,996 | 205,156 |
| w/ | 291,953 | 433,949 | 619,680 |

(a) GLM-5.2: text-only coding agent.
Figure 15. Atomic action invocation distributions across tasks. Proportions are computed by normalizing the average per-case call counts across actions.
Table 6. Average number of atomic visual action calls per case invoked by the text-only coding agent GLM-5.2 under VHarness across Image-to-HTML, Image-to-SVG, and Image-to-3D.
| Task | transcribe | grep | inspect | align | diff | Total |
|---|---|---|---|---|---|---|
| Image-to-HTML | 7.8 | 199.5 | 264.8 | 14.3 | 246.5 | 733.0 |
| Image-to-SVG | 11.2 | 29.4 | 155.9 | 5.4 | 164.5 | 366.4 |
| Image-to-3D | 3.8 | 34.3 | 53.5 | 0.3 | 351.8 | 443.8 |
Table 7. Average per-case invocations of native harness tools (Read, Bash, Write, Edit, and Other) and total VHarness atomic visual actions across Image-to-HTML, Image-to-SVG, and Image-to-3D. Other includes task-management and MCP resource tools.
| (a) Image-to-HTML | ||||||
|---|---|---|---|---|---|---|
| Model | Read | Bash | Write | Edit | Other | VHarness |
| GPT-5.5 | 72.5 | 58.3 | 3.3 | 74.7 | 13.6 | 187.4 |
| GPT-5.6-sol | 39.1 | 46.4 | 2.4 | 64.8 | 10.1 | 103.0 |
| Claude Opus 4.8 | 48.7 | 37.6 | 3.2 | 43.3 | 0.0 | 87.4 |
| GLM-5.2 | 0.0 | 1091.7 | 46.5 | 361.4 | 26.6 | 733.0 |
| GLM-5.3-Flash | 23.7 | 179.7 | 27.8 | 32.7 | 0.2 | 33.1 |
| (b) Image-to-SVG | ||||||
| Model | Read | Bash | Write | Edit | Other | VHarness |
| GPT-5.5 | 161.9 | 85.7 | 3.7 | 63.5 | 19.3 | 91.7 |
| GPT-5.6-sol | 64.7 | 47.7 | 2.3 | 54.1 | 13.3 | 56.4 |
| Claude Opus 4.8 | 84.9 | 36.3 | 2.9 | 45.2 | 0.0 | 56.6 |
| GLM-5.2 | 0.0 | 2490.7 | 227.7 | 221.3 | 54.2 | 366.4 |
| GLM-5.3-Flash | 117.6 | 250.1 | 33.1 | 40.2 | 0.7 | 11.1 |
| (c) Image-to-3D | ||||||
| Model | Read | Bash | Write | Edit | Other | VHarness |
| GPT-5.5 | 139.2 | 110.5 | 2.1 | 80.8 | 27.2 | 284.6 |
| GPT-5.6-sol | 104.0 | 106.4 | 1.5 | 114.2 | 24.0 | 242.6 |
| Claude Opus 4.8 | 87.3 | 53.4 | 1.6 | 73.4 | 0.1 | 164.3 |
| GLM-5.2 | 0.0 | 187.7 | 3.1 | 49.9 | 22.0 | 443.8 |
| GLM-5.3-Flash | 157.3 | 408.9 | 19.0 | 18.8 | 0.4 | 36.2 |
Table 8. Quantitative comparison on the same 50 cases evaluation testset. GPT-5.5 and GPT-5.6-sol are evaluated with (w/) and without (w/o) VHarness on all 50 cases per task. Arrows indicate the preferred direction for each metric, and bold marks the best displayed result in each column.
| (a) Image-to-HTML | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | VHarness | 2D Perceptual | 2D Structural | ||||||||
| SigLIP2 ↑ | DINOv2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Edge P ↑ | Edge R ↑ | Edge F1 ↑ | |||
| GPT-5.5 | w/o | 0.5973 | 0.8939 | 0.2129 | 0.6757 | 0.7122 | 0.0500 | 0.5817 | 0.5637 | 0.5717 | |
| w/ | 0.6400 | 0.9074 | 0.1807 | 0.6911 | 0.7284 | 0.0476 | 0.6169 | 0.5996 | 0.6073 | ||
| GPT-5.6-sol | w/o | 0.6459 | 0.9074 | 0.1694 | 0.6971 | 0.7453 | 0.0448 | 0.6526 | 0.6317 | 0.6410 | |
| w/ | 0.6871 | 0.9128 | 0.1452 | 0.7265 | 0.7657 | 0.0412 | 0.7062 | 0.6876 | 0.6960 | ||
| GLM-5.2 | w/ | 0.6044 | 0.8949 | 0.2028 | 0.6715 | 0.7242 | 0.0477 | 0.6107 | 0.5736 | 0.5907 | |
| (b) Image-to-SVG | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | VHarness | 2D Perceptual | 2D Structural | ||||||||
| SigLIP2 ↑ | DINOv2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Edge P ↑ | Edge R ↑ | Edge F1 ↑ | |||
| GPT-5.5 | w/o | 0.6304 | 0.8611 | 0.1546 | 0.7979 | 0.8137 | 0.0156 | 0.6550 | 0.6312 | 0.6417 | |
| w/ | 0.6553 | 0.8874 | 0.1248 | 0.8126 | 0.8445 | 0.0131 | 0.6815 | 0.6633 | 0.6712 | ||
| GPT-5.6-sol | w/o | 0.6682 | 0.8911 | 0.1137 | 0.8238 | 0.8571 | 0.0122 | 0.7169 | 0.7057 | 0.7102 | |
| w/ | 0.6838 | 0.9064 | 0.1025 | 0.8302 | 0.8631 | 0.0113 | 0.7194 | 0.7076 | 0.7126 | ||
| GLM-5.2 | w/ | 0.6507 | 0.8656 | 0.1219 | 0.8471 | 0.8756 | 0.0094 | 0.7383 | 0.6665 | 0.6950 | |
| (c) Image-to-3D | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | VHarness | 2D Perceptual | 2D Structural | 3D Geometric | |||||||
| SigLIP2 ↑ | DINOv2 ↑ | LPIPS ↓ | SSIM 1. ↑ | SSIM g. ↑ | Px MSE ↓ | Uni3D ↑ | Chamfer ↓ | ||||
| GPT-5.5 | w/o | 0.6133 | 0.6696 | 0.1470 | 0.8875 | 0.7048 | 0.0282 | 0.7666 | 0.0100 | ||
| w/ | 0.6938 | 0.7659 | 0.0806 | 0.9204 | 0.8651 | 0.0080 | 0.7870 | 0.0049 | |||
| GPT-5.6-sol | w/o | 0.6435 | 0.7034 | 0.1178 | 0.9041 | 0.7397 | 0.0164 | 0.7681 | 0.0172 | ||
| w/ | 0.7263 | 0.8101 | 0.0625 | 0.9293 | 0.8963 | 0.0053 | 0.8383 | 0.0034 | |||
| GLM-5.2 | w/ | 0.6400 | 0.6623 | 0.1250 | 0.9076 | 0.7470 | 0.0162 | 0.7548 | 0.0092 | ||

(a) GPT-5.5 on DINOv2 (↑).

(b) GPT-5.5 on global SSIM (↑).

(c) GPT-5.6-sol on DINOv2 (↑).

(d) GPT-5.6-sol on global SSIM (↑).
Figure 16. Cross-model and cross-metric refinement trajectories on Image-to-3D. We plot DINOv2 (left) and global SSIM (right) across render iterations for GPT-5.5 (top) and GPT-5.6-sol (bottom). Because the w/o VHarness baseline terminates early, the dashed line extends its final score for visual comparison.
GLM5.2 refines outputs with VHarness
Ground Truth Reference
Selected Saved Frames

Figure 17. Multi-step refinement trajectories of the text-only coding agent GLM-5.2 with VHarness on Image-to-HTML (top) and Image-to-SVG (bottom), showing selected intermediate renders from the initial draft to the final output alongside zoomed-in regional details.