📸 ScreenshotsMCP

browser_console_logs

Get all console messages (errors, warnings, logs) captured during the session.

Parameters

ParameterTypeRequiredDescription
sessionIdstringYesSession ID from browser_navigate

Example

Show me any console errors on this page

Response

Returns all console messages captured since the session started:

  • Errors — JavaScript exceptions, failed assertions
  • Warnings — deprecation notices, potential issues
  • Logsconsole.log() output

Notes

  • Console messages are captured from the moment the session is created
  • Includes messages from page scripts, third-party scripts, and browser warnings
  • Essential for debugging JavaScript errors without opening DevTools

On this page