get_console_logs
Retrieve browser console messages and uncaught exceptions, including DevTools history and stack traces, to diagnose page errors and check whether changes introduced new issues.
Instructions
Return browser console messages and uncaught exceptions, including the history already visible in DevTools before this server connected. Exceptions are reported with their full stack trace (source-mapped when available). Reloading or navigating the page does NOT clear this buffer: output from the old document stays and the new one is appended to it, so an entry carries from when it predates the document showing now. Replayed entries carry no timestamp — Chrome hands its backlog over without one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level / type. Omit to return all levels. | |
| limit | No | Maximum number of most-recent entries to return | |
| since | No | How far back to read: a lower bound rather than a label to match, since each value INCLUDES the newer ones. `current-page-load` is only the document showing now, which answers "did my change introduce a new error" — reload, ask for it, and an empty result is a real answer. `earlier-page-load` adds the pages this connection watched come and go; `before-connect` (the default) adds the backlog that was already in DevTools before it attached. | before-connect |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | Oldest first. |