Enable console collection
enable_console_collectionStarts capturing console output on the current page, enabling retrieval of console messages. Call it before using list_console_messages or get_console_message.
Instructions
Start capturing console output on the current page.
Call this before list_console_messages or get_console_message — neither returns anything until collection is on. Network capture, by contrast, is always on and needs no equivalent call.
This is opt-in rather than automatic because it enables the CDP Runtime domain, which some anti-bot scripts probe for to detect an attached debugger. Leave it off while stealth matters, and use disable_console_collection when you are done debugging.
Applies per page: a new tab needs its own call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |