arXiv:2611.17797cs.AINov 2026

Manuscript Offprint

arXiv:2611.17797

Vision-as-a-Tool: Visual Harness for Multimodal Agentic Coding

Haolin Yang, Wenshan Wu, Jin Jiang, Yu Cheng, Yan Xia, Ting Song, Yangyu Huang, Zhiliang Peng, Wenhui Wang, Hangbo Bao, Yuzhe Zhang, Wen-Da Wei, Tengchao Lv, Li Dong, Lei Cui, Furu Wei

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

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.

References (23)