Enable console collection
enable_console_collectionStarts capturing console output on the current page so you can later retrieve messages. Enable it before requesting console data; opt-in design avoids triggering anti-bot detection until needed.
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 |
|---|---|---|---|
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |