Browser Trace
Official
Browser Automation
Captures full DevTools-protocol traces, screenshots, and DOM dumps from active browser automation sessions to enable deep debugging and observability.
Browser Trace acts as a secondary, read-only Chrome DevTools Protocol (CDP) observer for local or remote browser automation runs. It listens to the CDP firehose without interfering with your main automation script, collecting raw events, periodic screenshots, and DOM snapshots. It then automatically organizes and bisects this rich data into searchable, per-page structured JSONL buckets. This allows developers to debug failing scripts, audit network and console events, and feed structured page summaries back into agent loops for self-correcting AI behaviors.
Key Features
01Captures synchronous screenshots and DOM dumps to provide step-by-step visual context.
02Supports both local Chrome debugging ports and remote cloud-hosted Browserbase sessions.
03Attaches a read-only secondary CDP client without disrupting active automation scripts.
043,637 GitHub stars
05Slices raw events into per-page searchable directory trees mapped to navigation boundaries.
06Records the full DevTools protocol firehose to structured NDJSON and splits it by domain.
Use Cases
01Auditing network activity, headers, and payload structures during an active browser session.
02Debugging failed automation runs by analyzing Console logs, JS exceptions, and failed network calls.
03Providing feedback loops for AI agents by generating structured summaries of the previous step's execution.