list_console_messages
Retrieve console logs, warnings, errors, and uncaught exceptions from a browser session's pages to debug page errors; read-only and optionally filtered by visit.
Instructions
List console messages (console.log, warnings, errors, uncaught exceptions) the session's pages emitted, oldest first, from the most recent limit. Use it to debug page errors; use list_network_requests for failed requests. Pass visit (a seq from list_visits) to see one page load; without it, messages from every visit are merged and limit keeps the newest. It reads logs and changes nothing. Empty unless the listener role is running, nothing is captured while stealth is on, and logs are deleted when the session closes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many of the newest messages. Default 500. | |
| visit | No | Only messages from this visit, by its `seq` from list_visits. Default: all visits. | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes |