browser_get_console_logs
Retrieve console log messages from browser tabs to monitor errors, warnings, and debug information during web application testing and development.
Instructions
[Disabled] Get console log messages from a browser tab. Requires browser_enable_network_capture to be active on the tab (the debugger captures both network requests and console output). Filter by level to see only errors, warnings, etc.
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": {
"tabId": "<tabId>"
},
"name": "browser_get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to get console logs from — network capture must be enabled first via browser_enable_network_capture | |
| clear | No | Clear the log buffer after reading — defaults to false | |
| level | No | Filter by log level — defaults to all |