browser_console
Get console output and JS errors from a target page, with an option to clear the buffer after reading.
Instructions
Get browser console output (log/warn/error/info) and JS errors.
Args: page_id: Target page ID. clear: Clear the message buffer after reading.
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": {
"page_id": "<page_id>"
},
"name": "browser_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| clear | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||