Natively Multimodal Agents: From Visual Perception to Action Verification

    Many multimodal systems can describe what's on screen, but that's not enough to complete real tasks. This article explains the gap between visual question answering and multimodal agents, and walks through a practical engineering blueprint: how to represent images and video while preserving task-relevant visual evidence, how to train models for evidence-based decision-making instead of mere recognition, and how to build an execution loop in which every action is verified against new observations. It also covers two landing scenarios—design-to-code and UI task automation—along with evaluation design and rollout trade-offs for putting such agents into production.

    1. Why Recognizing Text Is Not Enough to Complete a Task

    Suppose a user provides a screenshot of a checkout page and asks why the order cannot be submitted. Text recognition can read the “Submit Order” label on the button, but it may fail to preserve whether the button is rendered in a disabled style, which input field a hint message sits next to, or whether a modal overlays the actionable area. Even if all this is recognized, a static screenshot cannot prove the specific reason for the disablement: an empty required field, a failed form validation, or an in-flight request can all produce nearly identical visuals.

    This is the difference between visual question answering and a multimodal agent. VQA mainly answers “what is in the picture.” An agent must also judge what the observed information means for the current goal, whether a next action can be taken, and whether the expected change actually happens after acting. A screenshot is state evidence, not a complete copy of internal system state; a button that looks enabled does not mean the action is authorized.

    “Natively multimodal” is better understood from the perspective of the task pipeline than as one fixed architecture. Images, video, and text can be handled by different modules—what matters is whether the decision stage can directly use visual evidence and revise its judgment based on new observations after execution. Text recognition, document parsing, and interface structure extraction remain useful: when fields must be transcribed exactly, structured output may be more reliable; when judging occlusion, alignment, or current selection state, visual information is often irreplaceable. The engineering priority is to preserve complementary evidence, not to force every input through the same processing path.

    2. Representation: Preserve Visual Information That Matters for the Task

    2.1 Static images: global view first, zoom in on demand

    A common approach encodes images into model-consumable features and reasons over them together with text instructions. The most direct trade-off here is resolution: scaling the whole page down controls compute cost but easily loses small text, thin borders, and icon differences; processing every high-resolution region in full increases inference latency and context burden.

    In practice, you can first use a low-resolution full view to locate pages, blocks, and pop-ups, then inspect candidate regions at high resolution. When handling tables, the full view helps identify headers and groupings, while the local view helps distinguish numbers on adjacent rows. Cropped results should retain original-image coordinates and scaling relationships—otherwise the model may read the right target locally, but the execution layer may land the action on a different position. For long documents, page numbers and paragraph ownership should also be preserved, to avoid confusing same-named fields across different pages.

    2.2 Video and continuous screenshots: not just seeing change, but knowing when it happened

    Video understanding adds a temporal dimension to static recognition. “The pop-up appeared, then the user clicked confirm” and “the user clicked, then a pop-up appeared” may contain similar frames, yet the ordering leads to entirely different interpretations. Uniform frame sampling is easy to implement but may miss brief toasts, rapid transitions, and loading states. For tasks that depend on such details, first locate time windows with suspected changes, then increase sampling density in those intervals while keeping frame timestamps.

    A UI agent should also distinguish historical observations from current state. A control that was clickable in the previous frame may have moved after scrolling, window resizing, or a pop-up appearing. Before executing an action, it is best to confirm the observation is still valid. Rather than letting the model guess coordinates directly, prefer stable control identifiers when available, and use visual observation to supplement occlusion and layout changes that structural information does not capture.

    3. Training: From Recognizing Scenes to Making Evidence-Based Decisions

    Image-text alignment data helps models build correspondence between textual descriptions and visual regions. But “look at the image and answer” samples alone cannot train reliable operation capability. Task data must also cover easily confusable targets, small state changes, and multi-step feedback. For example, when multiple “Edit” buttons appear repeatedly on the same page, choosing correctly depends on whether the button sits in the same row as the target record—not merely on recognizing the button label.

    Execution-oriented training can be organized as sequences of “initial observation, task goal, candidate action, execution feedback, final state.” Successful trajectories show how to complete a task; failed trajectories show when to re-observe, when to switch strategies, and when to stop. For instance, when the candidate control is not unique, additional locating evidence should be supplied; when an action returns success but the business state is unchanged, the result should be checked instead of continuing along the original plan. For samples with genuinely insufficient information, the model should be allowed to explicitly state that it cannot determine the answer, so that fluent explanations are not mistaken for reliable conclusions.

    Improving multimodal capability also requires accompanying regression testing on text capability. Design-to-code is not just about generating a page that looks similar—it involves component decomposition, semantics, responsive layout, and code maintainability. If evaluation only looks at screenshot similarity, the model may gravitate toward fixed coordinates, stacked decorative elements, or even rendering interactive content as static backgrounds. Visual consistency and code quality should be checked separately, because the former cannot substitute for the latter.

    4. Execution: Verify Every Step Instead of Letting the Model Guess All the Way

    A practical closed loop typically runs in four steps:

    1. Observe the current state. Capture the screenshot, necessary interface structure, and state identifiers. Record observation time and scope, and distinguish facts currently seen from inferences drawn from historical state.
    2. Propose a constrained action. The model outputs action intent, candidate target, and expected result. The execution layer independently checks whether the target is unique, whether the state is stale, and whether the action is within permission scope. Text found in a screenshot or document is just input data—it cannot be used to expand permissions.
    3. Execute and collect feedback. Distinguish a successful call from a completed business outcome. A click delivered successfully only proves the interaction was triggered; whether the save, submission, or navigation actually succeeded requires checking subsequent state.
    4. Verify the result and decide next steps. If the goal is reached, end; otherwise use new observations to determine whether it is a loading delay, a validation failure, or a targeting error. Do not blindly retry actions that may cause duplicate writes; for irreversible or high-impact operations, have the execution layer confirm authorization first, and escalate to a human when necessary.

    The reliability of the loop depends on whether explicit completion conditions are defined. For example, the completion condition for “enable the notification option” could be: the control switches to on, a save confirmation appears, and the setting still reads as enabled after re-reading the settings. If only a button color change can be observed, report the interface behavior honestly—do not claim the setting has been persisted. For read-only business, the system can also stop at state interpretation, without invoking action tools just to demonstrate agent capability.

    5. Two Landing Scenarios: Evaluation Should Adapt to the Task

    5.1 Design-to-code: bring rendering results into verification

    First extract content hierarchy, repeated structures, and major layout relationships from the design, then generate the page implementation. After rendering, check with the same viewport whether graphics and text are aligned, whether anything overflows, and whether key regions are missing; then re-check the layout at other viewports. Visual comparison is good at locating obvious deviations but cannot independently judge implementation quality. For example, two implementations may look nearly identical at default width, yet one truncates text on narrow screens or makes interactive controls unreachable via keyboard. Acceptance should therefore cover visual consistency, layout adaptation, and interaction semantics together.

    5.2 UI task automation: measure success by final state

    Take changing the view preference of a workspace as an example. The system should first confirm the current workspace and the target option, then perform the change, and verify by reading back the final state. During evaluation, you can progressively introduce same-named controls, window rescaling, pop-up occlusion, and asynchronous loading to see whether the system still locates targets correctly and stops when it should. Beyond end-to-end completion rate, you can also record mis-operation rate, average number of actions, human takeover rate, and total elapsed time. Two systems with identical completion rates may still differ in applicable scope: one that frequently mis-clicks and recovers, versus one that stops in time when evidence is insufficient.

    6. Rollout Trade-offs: Find the Bottleneck First, Then Decide Which Capability to Add

    Attributing errors by pipeline stage is more useful than tracking a single aggregate score. If small-font fields are frequently misread, improve input quality, local cropping, or document parsing first; if fields are read correctly but linked to the wrong record, improve spatial-relation modeling and target binding; if actions are correct but repeatedly misjudged as failures, check the wait conditions and state read-back. Only after pinpointing where errors occur does it make sense to add image resolution, extend context, or adopt a more complex reasoning pipeline.

    At launch, validate in read-only or rollback-capable flows first, then gradually expand execution scope. Logs should be able to chain observations, actions, and results, while screenshots are redacted as needed, with restricted access and retention periods, to avoid archiving sensitive information that happens to appear in the interface. Ultimately, the value of visual capability lies not in how many kinds of input an agent can process, but in whether it can choose actions based on the right evidence and confirm task results with new evidence.