Chrome extension that captures UI context from webpages and sends it to AI coding tools via AiBridge and AiBridge cursor extension.
- Element Selection: Click to select elements, Shift+click to add to group, Alt+click to select parent
- Context Extraction: Captures HTML, CSS, accessibility info, and screenshots with bounding boxes
- AiBridge Integration: Send context directly to Claude Code, Cursor, or other AI tools
- Clipboard Support: Copy formatted prompt when AiBridge is unavailable
Coming soon.
- Clone or download this repository
- Run
npm install && npm run build - Open
chrome://extensions/in Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder
- Click the ContextBox icon in Chrome toolbar
- Click "Start Selection" to enable selection mode
- Click elements on the page to select them (numbered boxes appear)
- Add instructions in the popup that appears near selections
- Press Enter or click Send (if AiBridge connected) or Copy
- Click: Select/deselect element
- Shift+Click: Add element to current group
- Alt+Click: Select parent element
- Enter: Send (if connected) or Copy
- Escape: Clear all selections
ContextBox works best with AiBridge for direct AI tool integration.
Install AiBridge:
# macOS/Linux/WSL
curl -fsSL https://raw.githubusercontent.com/MobAI-App/aibridge/main/install.sh | bashLaunch your AI tool through AiBridge:
aibridge claude # Claude Code
aibridge codex # Codex
aibridge gemini # Gemini CLIInstall the AiBridge Cursor extension (also available in the Cursor marketplace as AiBridge). The extension runs the bridge server automatically within Cursor.
ContextBox automatically detects AiBridge on http://127.0.0.1:9999. Without AiBridge, use the Copy button to copy the prompt to clipboard.
In the popup:
- Include HTML snippets: Include element HTML in context
- Include computed styles: Include CSS properties
- Include accessibility info: Include ARIA attributes
- AiBridge URL: Change if using custom port (default:
http://127.0.0.1:9999)
npm install # Install dependencies
npm run build # Build extension
npm run watch # Watch modeFor a similar experience on mobile devices, check out MobAI.
ContextBox:
- Only activates when you click "Start Selection"
- Processes data locally in your browser
- Only sends data to AiBridge on your local machine
- Automatically redacts sensitive attributes (passwords, tokens, etc.)
- Does not collect or transmit any analytics
MIT License - see LICENSE