webtool_debug
Debug a webpage by capturing console output, network requests, errors, and layout thrashing with custom device emulation and adjustable output limits.
Instructions
Debug a webpage by capturing console output, network requests, errors, and layout thrashing with custom device emulation. Includes advanced response size management with pagination, output limits, and compact formatting to stay within MCP token limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the webpage to debug | |
| captureConsole | No | Capture console.log, warn, error output | |
| captureNetwork | No | Capture network requests and responses | |
| captureErrors | No | Capture JavaScript errors and exceptions | |
| captureLayoutThrashing | No | Capture layout thrashing events (forced layout/reflow) | |
| timeoutMs | No | How long to collect debug information in milliseconds | |
| useProxy | No | Whether to use a proxy for this request | |
| deviceConfig | No | Custom device configuration for emulation | |
| maxConsoleEvents | No | Maximum number of console events to include in the response | |
| maxNetworkEvents | No | Maximum number of network events to include in the response | |
| maxErrorEvents | No | Maximum number of error events to include in the response | |
| maxResourceEvents | No | Maximum number of resource timing events to include in the response | |
| skipStackTraces | No | Skip stack traces in layout thrashing events to reduce response size | |
| compactFormat | No | Use compact format for all sections to reduce response size | |
| summarizeOnly | No | Include only summary and counts without detailed event data | |
| page | No | Page number for paginated results (starts at 1) | |
| pageSize | No | Number of events per page for paginated results | |
| ignoreSSLErrors | No | Whether to ignore SSL certificate errors (default: true for development convenience) |