ie_console
Retrieve and filter collected page records—script errors, dialogs, console output, and XHR—from instrumented IE mode pages, using since_id to read only new entries.
Instructions
Records the server's page instrumentation made: script errors (kind error), alert/confirm/prompt (dialog-open when it opens, dialog when it closed, with the result), showModalDialog calls (modal: URL, features, dialogArguments, return value), window.open (open), console output (console, only where the page has a console, or all of it with IE_CONSOLE_STUB=1) and native XHR on https pages (xhr). Returns JSON {records, next_since_id}; pass next_since_id as since_id to read only what is new. Optional kinds (a list) and limit (default 100). Records are collected after each tool call, and only from pages the server has instrumented: load-time errors of the first page are not captured, and a dialog that closes between two calls leaves no record. The text is redacted. IE_INSTRUMENT=0 turns all of this off.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ie_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | error, dialog-open, dialog, modal, open, console, xhr | |
| limit | No | at most this many, oldest first (default 100) | |
| since_id | No | only records with a higher id (default 0) |