The capability
What visual grounding is
As you already know from M4, a vision-language model, or VLM, is basically a model that takes an image and some text and writes text back. If you ask one "is there a horse in this picture?", it'll say yes. For years that was about as far as it went, because if you then asked it to draw a box around the horse, the box would land somewhere near the horse, or on the wrong side of the picture, or the model would tell you it couldn't give positions at all. So it could recognise the horse, but it couldn't tell you where the horse was.
Visual grounding is that second half. It takes an image plus a text description of something in it, like "the horse" or "the Render menu" or "every icon", and it gives you back where that thing is. That comes either as a bounding box, which is just four numbers giving the left, top, right and bottom edges of a rectangle around it, or as a single point. The description is what makes it grounding, because a classic object detector finds the categories it was trained on, like "person" or "car", while a grounding model finds whatever the text names, and that includes things nobody ever trained it on by name.
Whether you want a point or a box depends on what you're going to do with it next. An agent that clicks only needs a point, and many computer-use tools ask for exactly that. A box carries more information, though, because it tells you how big the target is. The box is what you crop around when you want a closer look, and it's what you compare against a correct box when you measure accuracy. So most of this module asks for boxes and clicks their centre, because the extra two numbers pay for themselves the first time something goes wrong.
VLMs aren't the only models that do grounding, either. There are models that are built to do nothing else, like Grounding DINO. Models like that take an image and a phrase and return boxes, and they're small enough to run locally. And there are grounding models that were trained on screens, which find UI elements from a description. For years those dedicated models were much better at placing boxes than any VLM, and VLMs have only caught up recently. Section 6 compares them, and this module follows the VLM route, because that's where most agents start out these days.
In September 2026 I took a screenshot of Blender, which is the open-source 3D program, and gave GPT-5.6 Terra one instruction, "draw a red bounding box around every icon and a blue bounding box around every label". I didn't send any positions along with it, only that one sentence. The model found nearly every icon and piece of text on a crowded professional screen and drew the boxes by editing the screenshot, and to draw them, it had to know where each element was in the first place.

Grounding still can't read your intent, though. If you look at the outliner in the top right of that screenshot, Collection, Camera, Cube and Light each have an eye icon beside them, and the four eyes are exactly the same, pixel for pixel. Ask for "the eye icon" and the model just picks one, and nothing in the box tells you it had a choice. That problem is solvable, and a lot of my own work went into it. What worked was building a good harness around the model, using image-to-image encoders and multimodal encoders to match candidates, with VLMs as part of the loop too, and section 7 walks through it. The model also can't see what isn't in the image, like a menu item that only shows up after you hover over something, and its boxes are estimates that can be a few pixels off, which is a lot when the target is a 12-pixel icon. And the model only knows about the image it was sent, so if your code resized the screenshot on the way, the numbers describe the resized image, and that's what section 4 is about.
Some places it shows up
- Computer-use agents that operate an application from screenshots, finding the button to click next. This is the running example in this module, and it's the same loop M18 described for tools, with a click as the tool.
- UI test automation that checks a screen looks right and clicks through it, without depending on element ids that change between releases.
- Document work, like finding where a field sits on a scanned form so your code can read or redact the value, which M23 builds on.
- Robots and cameras, where "the red bin on the left" has to become a position an arm can reach.
These are just examples, and you'll see grounding pretty much anywhere a program needs a position from a description. The inputs and outputs are the same in all of them, with an image and a description going in and a box or a point coming out, and the same things go wrong, mostly in how your code reads the numbers back.
Keep reading
The rest of this lesson is free with an account
Create a free account to read the remaining 17 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.
- 02Northlight's agent clicked beside every button
- 03How a VLM turns a screenshot into something a language model can read
- 04Ask for numbers in one format, and convert them in your code
- 05Screenshot, box, click, then look again
- 06Pick a detector for what it was trained on, and a VLM for the rest
- and 12 more
That's the last one written so far
Pick your next module from the board.
