get_all_issues
Collects console errors, network failures, and broken resources in one request to quickly assess page health.
Instructions
Unified diagnostic tool that returns console errors, network errors, and broken resources in a single call. Use this for a quick health check. For deeper inspection of a specific category, use get_console_logs, get_network_errors, or audit_broken_resources individually. Note: resource inspection requires the CDP debugger to be attached. If Chrome DevTools is open on the tab, resource inspection may be skipped but console/network data will still be returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeConsole | No | Include console errors and warnings | |
| includeNetwork | No | Include failed network requests | |
| includeResources | No | Include broken images, stylesheets, and fonts | |
| clearAfter | No | Clear logs after retrieval | |
| tabId | No | Target tab ID (defaults to currently active tab) | |
| apiKey | No | API key for authentication if enabled |
Implementation Reference
- src/tools/qa.ts:413-437 (handler)The handler function that executes the 'get_all_issues' tool logic. It accepts optional parameters (includeConsole, includeNetwork, includeResources, clearAfter, tabId, apiKey), sends a bridge command via WebSocket to the extension, and returns the result (console errors, network errors, and broken resources) as formatted JSON.
server.tool( 'get_all_issues', 'Unified diagnostic tool that returns console errors, network errors, and broken resources in a single call. Use this for a quick health check. For deeper inspection of a specific category, use get_console_logs, get_network_errors, or audit_broken_resources individually. Note: resource inspection requires the CDP debugger to be attached. If Chrome DevTools is open on the tab, resource inspection may be skipped but console/network data will still be returned.', { includeConsole: z.boolean().optional().default(true).describe('Include console errors and warnings'), includeNetwork: z.boolean().optional().default(true).describe('Include failed network requests'), includeResources: z.boolean().optional().default(true).describe('Include broken images, stylesheets, and fonts'), clearAfter: z.boolean().optional().default(false).describe('Clear logs after retrieval'), tabId: z.number().optional().describe('Target tab ID (defaults to currently active tab)'), apiKey: z.string().optional().describe('API key for authentication if enabled'), }, async ({ includeConsole, includeNetwork, includeResources, clearAfter, tabId, apiKey }) => { const result = await bridge.sendCommand({ command: 'get_all_issues', params: { includeConsole, includeNetwork, includeResources, clearAfter }, tabId, apiKey, timeout: LONG_TIMEOUT, }); if (!result.success) { return { content: [{ type: 'text', text: `Error: ${result.error?.message}` }], isError: true }; } return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] }; } ); - src/tools/qa.ts:416-423 (schema)Zod schema defining the input parameters for the tool: includeConsole, includeNetwork, includeResources (all booleans with default true), clearAfter (boolean, default false), tabId (optional number), apiKey (optional string).
{ includeConsole: z.boolean().optional().default(true).describe('Include console errors and warnings'), includeNetwork: z.boolean().optional().default(true).describe('Include failed network requests'), includeResources: z.boolean().optional().default(true).describe('Include broken images, stylesheets, and fonts'), clearAfter: z.boolean().optional().default(false).describe('Clear logs after retrieval'), tabId: z.number().optional().describe('Target tab ID (defaults to currently active tab)'), apiKey: z.string().optional().describe('API key for authentication if enabled'), }, - src/tools/index.ts:51-55 (registration)The tool is registered via the registerQaTools function call in src/tools/index.ts, which is called during server setup to register all QA-related tools including 'get_all_issues'.
registerQaTools(server, bridge); registerGestureTools(server, bridge); registerMacroTools(server, bridge); registerVisualRegressionTools(server, bridge); } - src/types.ts:25-26 (helper)The LONG_TIMEOUT constant (60 seconds) is used as the timeout for the bridge.sendCommand call within the tool handler.
export const LONG_TIMEOUT = 60_000; export const WEBSOCKET_PORT = parseInt(process.env.WEBSOCKET_PORT || '7890', 10);