get_console_logs
Fetch and filter console logs from browser pages to support debugging. Options include level, keyword filters, and buffer clearing.
Instructions
Get console output collected from the page.
Args: level: Filter by log level - "log", "warn", "error", or "info". keyword: Filter logs containing this keyword in the text. clear: If True, clear the log buffer after retrieval.
Returns: List of dicts with level, text, timestamp, and location.
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": "get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| level | No | ||
| keyword | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |