console_messages
Retrieve captured browser console output from a page to debug errors, warnings, and logs, with an option to clear stored messages after reading.
Instructions
Get captured console messages 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": "console_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear messages after retrieving (default false) | |
| tabId | No | Tab ID (optional) |