UI Inspect
Browser Extension

Extension Overview

The UI Inspect browser extension for Chrome and Edge — element inspection, screenshot capture, and design comparison.

The browser extension is a Chrome/Edge extension that provides:

  • Element Inspector — Hover over any element to see its box model, spacing, alignment guides, and computed styles
  • Screenshot Capture — Capture pixel-perfect screenshots of any element or full page
  • Design Comparison — Upload a design image and overlay it on your implementation to spot differences
  • Visual Diff — Send screenshots to the diff engine for automated analysis and CSS fix suggestions

Installation

From source (development)

Build the extension

pnpm --filter @ui-inspect/extension build

Load in Chrome

  1. Open chrome://extensions/
  2. Enable Developer mode (top right)
  3. Click Load unpacked
  4. Select apps/extension/build/chrome-mv3

Verify

Click the UI Inspect icon in the toolbar. The side panel should open with the extension UI.

Development mode

For hot-reload during development:

pnpm --filter @ui-inspect/extension dev

The extension uses the Plasmo framework with Manifest V3. Hot reload works automatically during development.

Architecture

ComponentFileDescription
Side Panelsidepanel.tsxMain UI with inspector settings, comparison controls
Content Scriptcontent.tsxInjected into pages for element picking and overlays
Backgroundbackground.tsScreenshot capture, message routing between components

Communication flow

Side Panel ←→ Background Script ←→ Content Script
     ↕                                    ↕
  MCP Server                        Page DOM

Messages are passed via Chrome's runtime.sendMessage and tabs.sendMessage APIs.

Permissions

PermissionPurpose
sidePanelDisplay extension UI in the side panel
tabsAccess tab information for screenshot targeting
activeTabCapture screenshots of the active tab
scriptingInject element detection scripts
<all_urls>Inspect elements on any page
http://localhost:3000/*Connect to the MCP server

Keyboard shortcuts

ShortcutAction
Hold CtrlActivate element picker
EscStop picking / close modals

On this page