browser-server-console
Serve a static directory via Express and capture browser console output to identify client-side issues.
Instructions
Spawn an Express static server for a directory and capture console output from the served content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to navigate to after starting server (default: "/") | / |
| port | No | Preferred port to run the server on (will find next available if busy, default: 3000) | |
| stream | No | Whether to stream console output in real-time (default: true) | |
| timeout | No | Timeout in milliseconds (default: 30000) | |
| waitFor | No | CSS selector or text to wait for before capturing console (optional) | |
| commands | No | Browser commands to execute (e.g., "click .button wait 2s") (optional) | |
| directory | Yes | The directory to serve statically |