Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler function that instructs the response to include console data.
    handler: async (_request, response) => { response.setIncludeConsoleData(true); },
  • Empty schema indicating no input parameters required.
    schema: {},
  • 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); }, });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SHAY5555-gif/chrome-devtools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server