Browser automation and debugging plugins for AI agents
npx claudepluginhub stevengonsalvez/agent-bridgeBrowser automation and inspection toolkit for AI agents. Debug web apps, inspect UI, capture network traffic, monitor navigation, take screenshots.
AI-friendly debugging for web applications. Enables LLM agents to inspect, interact with, and control web apps via WebSocket.
npm install -g debug-bridge-cli
npm install debug-bridge-browser
// src/debug-bridge.ts
import { createDebugBridge } from 'debug-bridge-browser';
if (import.meta.env.DEV) {
const params = new URLSearchParams(window.location.search);
const sessionId = params.get('session') || 'debug';
const port = params.get('port') || '4000';
const bridge = createDebugBridge({
url: `ws://localhost:${port}/debug?role=app&sessionId=${sessionId}`,
sessionId,
appName: 'My App',
});
bridge.connect();
}
Import it in your app entry point:
// main.tsx
import './debug-bridge';
# Terminal 1: Start the debug server
debug-bridge connect --session myapp
# Terminal 2: Start your app
npm run dev
# Terminal 3: Open browser with debug params
open "http://localhost:5173?session=myapp&port=4000"
debug> ui # Get UI tree (interactive elements)
debug> find login # Search for elements matching "login"
debug> click button-abc123 # Click element by stableId
debug> type input-xyz "hello" # Type text into input
debug> screenshot # Capture viewport
debug> state # Get app state (cookies, localStorage, etc.)
debug> eval document.title # Execute JavaScript
debug> help # Show all commands
| Package | Description | Install |
|---|---|---|
debug-bridge-cli | CLI with WebSocket server | npm install -g debug-bridge-cli |
debug-bridge-browser | Browser SDK | npm install debug-bridge-browser |
debug-bridge-types | TypeScript types | npm install debug-bridge-types |
┌─────────────────┐ WebSocket ┌─────────────────┐
│ Your Web App │◄──────────────────►│ Debug Bridge │
│ (browser SDK) │ │ Server │
└─────────────────┘ └────────┬────────┘
│
┌────────▼────────┐
│ CLI / Agent │
│ (sends cmds) │
└─────────────────┘
const bridge = createDebugBridge({
// Required
url: 'ws://localhost:4000/debug?role=app&sessionId=myapp',
sessionId: 'myapp',
// Optional
appName: 'My App',
appVersion: '1.0.0',
enableEval: false, // Enable JavaScript execution (security risk)
enableDomSnapshot: true, // Send DOM snapshots
enableDomMutations: true, // Track DOM changes
enableUiTree: true, // Build interactive element tree
enableConsole: true, // Forward console logs
enableErrors: true, // Forward errors
// Custom state provider (for auth, cart, etc.)
getCustomState: () => ({
user: { id: '123', name: 'John' },
cart: { items: 3 },
}),
// Custom stable ID generator for elements
getStableId: (el) => el.getAttribute('data-testid'),
// Callbacks
onConnect: () => console.log('Connected'),
onDisconnect: () => console.log('Disconnected'),
onError: (err) => console.error(err),
});
| Command | Description |
|---|---|
ui / tree | Get interactive UI elements |
find <query> | Search cached UI tree |
click <id> | Click element by stableId |
type <id> <text> | Type text into element |
eval <code> / js | Execute JavaScript |
snapshot / dom | Get full DOM HTML |
screenshot / ss | Capture viewport |
state [scope] | Get application state |
navigate <url> / go | Navigate to URL |
focus <id> | Focus an element |
scroll <x> <y> | Scroll to position |
clear | Clear console |
help / ? | Show help |
Debug Bridge includes a skill/plugin system for seamless integration with AI coding assistants.
Method 1: From GitHub Marketplace (Recommended)
# 1. Add the agent-bridge marketplace
/plugin marketplace add stevengonsalvez/agent-bridge
# 2. Install the debug-bridge plugin
/plugin install debug-bridge@agent-bridge-marketplace
Method 2: Local Development/Testing
# Use during development or testing
claude --plugin-dir /path/to/agent-bridge
Method 3: Manual Installation
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Production-ready workflow orchestration with 84 marketplace plugins, 192 local specialized agents, and 156 local skills - optimized for granular installation and minimal token usage
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations