browser_debug
Collect a full debugging snapshot of the browser: current URL, title, console logs, alerts, and network requests with headers/body. Filter by URL, method, or console type to pinpoint issues.
Instructions
PREFERRED DEBUGGING TOOL. Returns current URL, page title, console logs, dialogs (alert/confirm/prompt), and rich network requests in one call. Always call this before browser_screenshot. Network entries include: method, URL, query params (parsed), request body (JSON/form), request headers (auth masked), status code, response body (JSON), and duration_ms for performance analysis. Use url_filter and method_filter to focus on specific API calls. Use console_types to filter log levels.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last_n | No | Return last N entries (default 50) | |
| url_filter | No | Filter network requests by URL substring | |
| console_types | No | Filter console by type: error, warning, log, pageerror | |
| method_filter | No | Filter network requests by method e.g. POST, GET |