List console messages
list_console_messagesRetrieve console messages from a page with type filtering and pagination. Requires enabling console collection beforehand.
Instructions
List console output collected for the selected page.
Requires enable_console_collection first. Console capture is opt-in because it needs the CDP Runtime domain, which some sites use to detect an attached debugger; without it this returns a reminder instead of messages.
Each line is prefixed with its id and truncated to 200 characters — pass the id to get_console_message for the full text. Only the most recent 1000 messages are retained.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Only return these console types, e.g. ["error", "warning"]. Note the value is "warning", not "warn". Omit for all types. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| page_idx | No | 0-based page number, used together with page_size. | |
| page_size | No | Maximum number of messages to return. Omit to return all. | |
| include_preserved_messages | No | Also include messages from before the last navigation — the server keeps the previous 3 navigations. Default false: current page only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |