page_console
Retrieve page console logs and errors captured at the protocol level, bypassing page-level hiding. Optionally clear the buffer after reading to filter repeated noise.
Instructions
DEBUG CORTEX: read the page's console output (log/warning/error) captured at the PROTOCOL level — the page cannot hide or patch it. Invisible debugger for AI agents: reproduce the bug, read what the page logged. Optionally filter noise by clearing after read. Returns JSON [{kind, text, url, line, ts}]. Auto-starts capture on first call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"page_id": "<page_id>"
},
"name": "page_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Drain the buffer after reading (default: keep entries). | |
| page_id | Yes | ||
| session_id | Yes |