console
Retrieve recent browser log messages and page errors to inspect what the page reported after an action. Filter to warnings and errors for quick troubleshooting.
Instructions
Recent console messages and page errors, newest last (observation only; not part of a trace). Returns {messages:[{type, text}]}, where type is the console method (log, info, warning, error, debug, ...) or pageerror; only_errors keeps warning, error and pageerror. Read it after an action to see what the page complained about.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| only_errors | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |