browser_console_logs
Retrieves recent console.log, warn, and error messages from the current page to debug browser issues, installing a lightweight interceptor on first call and returning the last N entries.
Instructions
Get recent console.log/warn/error messages from the page. Installs a lightweight interceptor on first call. Returns the last N console messages.
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": "browser_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of recent messages to return (default: 50) | |
| partition | No | Run this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead. |