capture_console
Captures all console messages during page load, including uncaught exceptions, and returns structured results with counts by level for debugging runtime issues.
Instructions
Capture all console messages (log, warn, error, info, debug) during page load. Navigates to the URL, listens for console output and uncaught exceptions, then returns structured results with message counts by level. Useful for debugging runtime issues, detecting warnings, and finding errors that only appear in the browser console.
Note: Console messages may contain sensitive data (tokens, user info, etc.) — the output is returned unfiltered.
This tool is FREE — runs entirely within Claude Code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to capture console logs from (e.g., http://localhost:3000) | |
| waitMs | No | Time in ms to wait after page load for additional console messages (default 3000) |