Browser Listener
With Autodock, you can feed logs from any browser session into your agent. Ask your agent to compare db, server and browser logs to get a full picture of how your app is running.How It Works
The browser listener lets your AI agent capture real-time data from any browser session:- Console logs - All
console.log,console.error,console.warn, etc. - Network requests - Every fetch/XHR request with method, URL, status, timing, and request/response bodies
- JavaScript errors - Uncaught exceptions and unhandled promise rejections
- Screenshots - On-demand page captures
Quick Start
- Ask your agent to start a browser listener:
- Your agent will call
browser.listenand give you a command to paste in your browser console:
- Paste the command in your browser’s developer console (F12 or Cmd+Option+I)
-
You’ll see
[autodock] Listening...in your console - the listener is now active - Your agent can now poll for events and request screenshots
MCP Tools
browser.listen
Creates a new browser listener session. Parameters:ttlMinutes(optional): Session timeout in minutes (5-60, default: 30)
token: 6-character session tokenconsoleCommand: The command to paste in browser consoleexpiresAt: When the session expires
browser.poll
Retrieves captured browser events. Parameters:token: The 6-character session tokenlimit(optional): Maximum events to retrieve (1-100, default: 50)sinceMinutes(optional): Only return events from the last N minutes (1-60, default: 5)
- Console logs, network requests, and errors with timestamps
- Screenshot URL if one was captured
- Session status
browser.shot
Requests a screenshot from the browser. Parameters:token: The 6-character session token
browser.poll after waiting to retrieve
the screenshot URL.
browser.stop
Stops a listener session and cleans up resources. Parameters:token: The 6-character session token
Example Session
Stopping the Listener
From the browser console:browser.stop.
Privacy & Security
- Sessions expire after 30 minutes by default (configurable up to 60 minutes)
- Sensitive data like passwords, tokens, and auth headers are automatically redacted
- Request/response bodies are truncated to 2000 characters
- Screenshots are stored temporarily (5 minutes) and then deleted
- Each session is isolated to the user who created it
