get_console_logs
Retrieves a browser tab's console messages and uncaught exceptions, oldest first, with optional level filtering, limits, and clearing to debug page errors.
Instructions
Lists the tab's console messages and uncaught exceptions, oldest first, one line each: [level] text @ url:line (lines from 1; objects previewed, repeats folded, stacks indented); on Chrome an uncaught error's cause chain follows it (Caused by: lines); include_details gives {messages, total, truncated, notes?} as JSON. Keeps the last 1000 (10000 characters each); cleared when the tab moves to another site. For problems the browser diagnosed (blocked cookies, CORS, CSP) use get_issues.
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": "get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Remove the returned messages. Default: false. | |
| limit | No | Most recent messages to return, 1 to 1000. Default: 200. | |
| tab_id | No | Default: the active tab. | |
| instance_id | No | Default: 'default'. | |
| level_filter | No | 'error', 'warning', 'info', 'log', 'debug'... Default: every level. | |
| include_details | No | Every field (source, timestamp...) as JSON. Default: false (one line each). |