list_console_messages
Retrieve console messages from the current page to monitor JavaScript errors, warnings, and logs for debugging and analysis.
Instructions
List all console messages for the currently selected page since the last navigation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/console.ts:19-21 (handler)The tool handler function that instructs the response to include console data.handler: async (_request, response) => { response.setIncludeConsoleData(true); },
- src/tools/console.ts:18-18 (schema)Empty schema indicating no input parameters required.schema: {},
- src/tools/console.ts:10-22 (registration)Tool registration using defineTool, exporting as consoleTool.export const consoleTool = defineTool({ name: 'list_console_messages', description: 'List all console messages for the currently selected page since the last navigation.', annotations: { category: ToolCategories.DEBUGGING, readOnlyHint: true, }, schema: {}, handler: async (_request, response) => { response.setIncludeConsoleData(true); }, });