Skip to content
AI INTEGRATION

AI integration

Hand your measurement to AI and let it fix things. You measure and pick; AI fixes and checks.

Last updated:

What it does#

You measure and pick. AI fixes.

Only you know what was changed on purpose. AI handoff starts after you measure, from the “Measure & AI” tab. Two ways: hand over all results, or only the differences you check. Any AI you can paste text into works. An AI that can drive the browser also measures again on its own to confirm.

Once connected, 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#

For fixing alone, any AI you can paste text into will do. For the AI to measure again on its own after fixing, it needs to be an 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 setupStatus
Claude Code + Claude in ChromeTested
Agents with a browser MCP (Playwright etc.)Works if it can run in-page scripts
OthersWorks if the same condition is met

Flow#

  1. 1

    Align the comp and measureYou

    Measure the viewport. AI handoff doesn’t appear until you’ve measured.

  2. 2

    Hand over all, or pickYou

    In the “Measure & AI” tab, press “Copy prompt (all N)”, or check what to fix and press “Copy prompt (N)”. A prompt with a passphrase is copied.

  3. 3

    Paste into your AIYou

    Paste it into the AI you use.

  4. 4

    AI fixesAI

    An AI that can drive the browser connects with the passphrase and measures again after fixing. The AI row changes to “Connected to AI”.

  5. 5

    Measure again to confirmYou

    Press “Measure again” and check that the picked differences are gone.

Sample prompt (dummy — won’t work as is. Copy the real one from the panel)Example
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.
List of actions

help() returns the current list. It isn’t copied here so it never goes stale.

How connecting works#

There’s no “connect” step for you. The AI that receives the prompt does the connecting.

  • The prompt carries the passphrase for connecting
  • Prompts copied while connected don’t carry a passphrase
  • After 30 minutes unused it disconnects, and the next prompt you copy carries a new passphrase

Reading results#

FieldMeaning
VerdictPasses if at least one element was compared and there are no offsets, unmatched elements or color differences, nothing left out under a fixed element or out of view, no shift from a point down (layoutShifts), nothing cut off by a limit, and no comp-wide offset (misaligned, commonApplied)
OffsetsPosition / size difference per element (px)
ColorBuild vs comp color codes
SkippedLow-confidence items hidden, with count and reason
CenteredcenteredInParent from inspect(): whether the element is centered in its parent (x / y / both)
Why unmatchedunmatchedCause from inspect(): whether an unmatched element is far off, or its content differs
Scale driftscaleDrift from measure(): horizontal offsets grow with x, so the comp’s scale may be slightly off
Leftover differencecolorMismatches[].residual: the kind of difference found by comparing the whole screen. missing (only in the comp), extra (only on the page), changed (the content differs)
Width gapmismatches[].stretch: true on an element that matches once stretched sideways. The amount is delta.width (px). For text, a hint of letter-spacing, font-size or the font
Shift from here downlayoutShifts: where everything below shifts together, and by how many px
Stale pagestalePage: the page wasn’t reloaded after the extension updated
Sampling edge colorssamplePixels(points): when tracing edges, sample up to 500 points in one call (one capture) instead of one at a time
AI agentNeeds fixes
Measured. 3 elements are off from the comp, and 1 color differs.
1.hero__title↓3px
2.hero__visual→2px
3.btn--orderw+4
◐.card:nth-child(2)#E2E2E2 → #EDEDED
Fix all 4 now?

Security#

  • Starting a connection requires the passphrase in the prompt. Once an AI has connected, the same tab on the same origin (http and https count as different) can reconnect without it while the connection is open (so it survives a reload)
  • To disconnect, open “More” in the AI row of the “Measure & AI” tab and press “Disconnect”
  • Disconnects automatically after 30 minutes idle
  • A call from another tab on the same origin (http and https count as different), 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 on another origin on its own
  • The page is captured with the browser’s debugging tools, so a “debugging” bar shows at the top while the AI measures or reads colors, too
What it can’t do

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
A rule of thumb

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 (past 20,000 entries, the oldest are deleted)
  • View / clear: Menu → “AI activity log…”
Before sharing the log

The log includes page titles, comp names and other project-identifying info.

Troubleshooting#

I can’t find AI handoff

It appears at the bottom of the “Measure & AI” tab after you measure. It doesn’t show before measuring, when there are 0 differences, or when the result says the whole comp may be off. You can’t start it from the AI badge at the top.

Can’t connect

If the AI row stays on “Waiting for the AI to call”, the prompt didn’t reach the AI. Copy and paste it again. An AI that only takes text won’t connect — measure again yourself after it fixes.

I can’t move the comp

Comp edits pause while AI operates. They come back 30 seconds after its last action — or right away when you press “Stop AI” or disconnect.

The AI is working in another tab

On the same origin (http and https count as different), 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. For a tab on another origin the button reads “Disconnect and target this tab”, and the connection closes.

Results look the same after updating the extension

Reload PixelPont in chrome://extensions, then reload the page. The AI sees this as stalePage.

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).

A “debugging” bar appears at the top

It shows while the AI measures or reads colors, and can stay for a few seconds afterwards. It does no harm. Clicking “Cancel” stops that measurement.

Something else

Tell us via Contact. The panel’s activity log helps us find the cause.