Overview
Preview session data in real-time without stopping the active session. Shows the last N network requests and console messages with optional filtering.Syntax
Options
Number of items to show. Valid range: 1-1000.
Filter network requests by resource type (comma-separated, case-insensitive).Valid types:
Document, Stylesheet, Image, Media, Font, Script, TextTrack, XHR, Fetch, Prefetch, EventSource, WebSocket, Manifest, SignedExchange, Ping, CSPViolationReport, Preflight, FedCM, OtherShow only network requests.
Deprecated in human-readable mode. Use
bdg network list for enhanced filtering.Show only console messages.
Show DOM/A11y tree data (only available after session stops).
DOM data is captured as a snapshot when the session ends. During a live session, this will show “(none)”.
Use verbose output with full URLs and resource type information.
Watch for updates continuously (like Press
tail -f). Updates every second.Ctrl+C to stop following.Output as JSON instead of human-readable format.
Output Format
Human-Readable (Default)
Compact format (default):--verbose):
JSON Format
Returns the complete session data structure:Examples
Basic Usage
Preview last 10 items (default):Filter by Data Type
Show only network requests:Filter by Resource Type
Show only Document requests (HTML pages):Follow Mode
Watch for updates in real-time:JSON Output
Get JSON output for processing:jq:
Resource Type Filtering
The--type flag filters network requests by Chrome DevTools Protocol resource type:
| Type | Description | Example URLs |
|---|---|---|
Document | HTML pages | /, /about, /products |
Stylesheet | CSS files | /styles.css, /theme.css |
Script | JavaScript files | /bundle.js, /app.js |
XHR | XMLHttpRequest | API calls via XHR |
Fetch | Fetch API | API calls via fetch() |
Image | Images | /logo.png, /photo.jpg |
Font | Web fonts | /font.woff2, /icons.ttf |
Media | Audio/video | /video.mp4, /audio.mp3 |
WebSocket | WebSocket connections | wss://api.example.com |
Resource types are case-insensitive. Both
--type xhr and --type XHR work.Exit Codes
Command completed successfully.
Invalid option value (e.g.,
--last 2000 exceeds max of 1000).Common causes:--lastvalue outside range 1-1000- Invalid resource type in
--type - Conflicting options
No active session found.Solution: Start a session first with
bdg <url>Cannot connect to daemon.Solution: Check session status with
bdg statusRelated Commands
bdg tail- Continuous monitoring (dedicated tail command)bdg details- Get detailed information for specific itemsbdg network list- Enhanced network request filteringbdg console- Smart console message inspection

