console_messages
Read console output and uncaught errors from a browser tab since it opened or was last cleared, with regex filtering and error-only options to debug page issues.
Instructions
Read console output and uncaught errors captured from a tab since it was opened or last cleared.
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": "console_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear the buffer after reading | |
| limit | No | Most recent N, default 100 | |
| tabId | Yes | Tab ID, from tabs_list or tab_create | |
| pattern | No | Regex filter on the message text | |
| onlyErrors | No |