AI integration
Let an AI agent measure mismatches against the comp and report back. Written for developers.
What it does#
The AI reads PixelPont’s state, runs measurements and gets results directly from inside the page. No extra software (such as an MCP server) is required.
- Read the current comp, position and scale
- Measure the viewport or the full page
- Receive results (offsets, colors, confidence) as structured data
- Move the comp and measure again
For the full method list and details, see Developers.
Requirements#
An AI agent that can drive a browser and run scripts inside the page. Works on any page you’ve allowed site access to, not just localhost.
| Example setup | Status |
|---|---|
| Claude Code + Claude in Chrome | Tested |
| Agents with a browser MCP (Playwright etc.) | Works if it can run in-page scripts |
| Others | Works if the same condition is met |
Flow#
- 1
Copy the promptYou
The AI chip at the top of the panel → “Copy AI prompt”. The prompt carries a passphrase; the chip switches to “AI waiting”.
- 2
Paste into your AIYou
Paste it into the AI agent you use.
- 3
AI connects on the target tabAI
When the AI connects with the passphrase, the chip shows “AI on”.
- 4
MeasureAI
The AI runs a measurement. The same results appear in the Measure tab.
- 5
ReportAI
The AI reports the mismatches and a pass / fail.
- 6
DisconnectAI
The AI disconnects when done. It also drops after 30 minutes idle.
Connect to PixelPont on this tab and measure how the page differs from the design comp. Check available actions with window.__pixelpont.help(). The passphrase for connecting is included in this prompt.
help() returns the current list. It isn’t copied here so it never goes stale.
Reading results#
| Field | Meaning |
|---|---|
| Verdict | Passes if nothing exceeds tolerance |
| Offsets | Position / size difference per element (px) |
| Color | Build vs comp color codes |
| Skipped | Low-confidence items hidden, with count and reason |
Security#
- Connecting requires the passphrase in the prompt
- Disconnects automatically after 30 minutes idle
- A call from another tab of the same site, with the right passphrase, moves the target to that tab (the panel shows a notice you can undo)
- The target never moves to a tab of another site on its own
The passphrase can’t be fully protected from other scripts running on the same page. Don’t use AI integration on pages that run untrusted scripts.
On sites other than localhost, AI integration works only after you allow access to that site. Before you allow it, here is what to know.
- While connected, other scripts on the page (analytics tags, ads and so on) can call the same API
- The API returns on-screen colors and element positions. On a signed-in page, that content is included
- Visited links change color, so the color may reveal whether a given link has been visited
- Colors of images and embeds from other sites are never returned. An image that a same-site URL redirects to another site cannot be told apart, though, and its colors may be returned
Allow access only on sites you trust, and disconnect when the work is done. You can revoke access at any time: open PixelPont’s “Details” in chrome://extensions and change “Site access”.
Activity log#
Every AI action is logged on your device. Nothing is sent out.
- What: time, action and its arguments (selectors, coordinates, changes), a summary of the result, page URL and title, comp name, the name the AI gave
- Before you share the log, check that it holds page URLs and the like
- Where: in your browser (never deleted automatically)
- View / clear: Menu → “AI activity log…”
The log includes page titles, comp names and other project-identifying info.
Troubleshooting#
Can’t connect
If the chip stays on “AI waiting”, the prompt didn’t reach the AI. Copy and paste it again.
The AI is working in another tab
On the same site, the target moves to that tab on its own (the notice has an Undo). If it couldn’t move, the panel shows “AI is calling from another tab”. Press “Target this tab” to switch.
Results don’t match the panel
The AI and the panel read the same results. If they differ, check the time and the area (viewport / full page).
Something else
Tell us via Contact. The panel’s activity log helps us find the cause.