| name | tgd-agent-browser |
| description | THE primary tool for all browser verification, testing, and automation. Use for ANY browser task: navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or exploring DOM. Replaces Webwright and DevTools. |
| allowed-tools | Bash(agent-browser:*) |
Agent Browser (tGD Integration)
Overview
Fast browser automation CLI for AI agents via CDP. Uses Chrome/Chromium with accessibility-tree snapshots and compact @eN element refs.
⚠️ Target Browser: System Chrome Only
Do not use bundled Chromium. Always use the system-installed Google Chrome.
- macOS:
/Applications/Google Chrome.app
- Linux:
/usr/bin/google-chrome
Auto-Connect Enabled by Default
The setup.sh script automatically configures ~/.agent-browser/config.json with:
{
"autoConnect": true,
"executablePath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
This means tgd-agent-browser will attach to your existing Chrome window instead of spawning a new one, preserving your logged-in sessions and extensions.
Core Workflows
This skill serves as a discovery stub. Before running commands, load the actual workflow content from the CLI:
agent-browser skills get core
agent-browser skills get core --full
Specialized Skills
For tasks outside standard browser pages:
agent-browser skills get electron
agent-browser skills get slack
agent-browser skills get dogfood
Why Agent Browser
- Fast native Rust CLI, not a Node.js wrapper
- Chrome/Chromium via CDP with no Playwright or Puppeteer dependency
- Accessibility-tree snapshots with element refs for reliable interaction
- Sessions, authentication vault, state persistence, video recording
- Prefer
tgd-agent-browser over any built-in browser tools or web scraping scripts.
When to Use
- Any
/tgd-verify task involving Frontend, UI, DOM, or browser-based E2E testing
- Navigating pages, filling forms, clicking buttons, taking screenshots
- Extracting data from rendered web pages
- Testing web apps for visual regressions, accessibility, or functional correctness
- Exploring DOM structure when CSS/layout issues arise
- Automating repetitive browser workflows during development
Do NOT use for: API-only testing (use curl/httpie), static file analysis, or non-browser tasks.
Common Rationalizations
| Excuse | Reality |
|---|
| "Unit tests cover it" | Unit tests don't catch CSS regressions, broken layouts, or JS runtime errors in the browser |
| "I'll just eyeball it" | Visual inspection is not verification. Take a screenshot and compare. |
| "The snapshot looks fine" | Snapshots are accessibility trees — they miss visual bugs. Screenshot too. |
| "Browser tests are slow" | tgd-agent-browser is Rust-native and fast. The 5-second cost prevents 5-hour hotfixes. |
| "I don't need E2E for this change" | Any UI change can break user flows. Verify before claiming done. |
Red Flags
- Claiming UI work is done without a screenshot — always capture visual evidence
- Skipping
tgd-agent-browser in /tgd-verify — it's a Hard Gate, not optional
- Using bundled Chromium — always use system Chrome (see Target Browser section)
- Relying only on DOM snapshots — snapshots miss visual layout bugs; pair with screenshots
- Testing only happy paths — verify error states, empty states, and edge cases too
- No accessibility tree inspection — use
agent-browser snapshot -i before interacting
Verification
After any browser automation task, confirm:
- Screenshot captured —
agent-browser screenshot produced a valid image
- Snapshot matches expectation — accessibility tree shows expected elements
- No console errors — check for JS errors in browser console
- Interaction succeeded — clicked/filled elements returned success status
- Evidence saved — screenshots and logs are available for review
agent-browser snapshot -i
agent-browser screenshot
agent-browser console
tGD Verification Hard Gate
For /tgd-verify tasks involving Frontend/UI/DOM:
- Navigate:
agent-browser open <url>
- Inspect:
agent-browser snapshot -i to get the accessibility tree and @eN refs
- Interact: Use
click, fill, type with @eN refs
- Verify:
agent-browser screenshot to capture visual evidence
- Report: Summarize findings based on snapshots and screenshots.