get_console_logs
Retrieve console logs from a page with optional filtering by log level or keyword, and clear the buffer after retrieval.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| keyword | No | ||
| clear | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |