read_console_messages
Retrieve console log, info, warning, error, and debug messages from a page, optionally filtering to errors or clearing messages after reading.
Instructions
Get console output (log, info, warn, error, debug) from the page.
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": "read_console_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear console messages after reading. | |
| tabId | No | Tab ID to target. Omit to act on the current tab. | |
| onlyErrors | No | Only return errors. |