page_errors
Read uncaught JavaScript exceptions and stack traces captured at the browser protocol level, enabling quick diagnosis and resolution of page runtime errors.
Instructions
DEBUG CORTEX: read the page's UNCAUGHT JS EXCEPTIONS with stack traces, captured at the protocol level. The error console a developer opens in DevTools — as a tool. Returns JSON [{text, url, line, stack: [frames], 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_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Drain the buffer after reading (default: keep entries). | |
| page_id | Yes | ||
| session_id | Yes |