playwright_console_logs
Retrieve and filter browser console logs with customizable options like log type, search text, and limit. Automatically clear logs post-retrieval if needed. Essential for debugging and monitoring web interactions.
Instructions
Retrieve console logs from the browser with filtering options
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| clear | No | Whether to clear logs after retrieval (default: false) | |
| limit | No | Maximum number of logs to return | |
| search | No | Text to search for in logs (handles text with square brackets) | |
| type | No | Type of logs to retrieve (all, error, warning, log, info, debug, exception) | 
Input Schema (JSON Schema)
{
  "properties": {
    "clear": {
      "description": "Whether to clear logs after retrieval (default: false)",
      "type": "boolean"
    },
    "limit": {
      "description": "Maximum number of logs to return",
      "type": "number"
    },
    "search": {
      "description": "Text to search for in logs (handles text with square brackets)",
      "type": "string"
    },
    "type": {
      "description": "Type of logs to retrieve (all, error, warning, log, info, debug, exception)",
      "enum": [
        "all",
        "error",
        "warning",
        "log",
        "info",
        "debug",
        "exception"
      ],
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}