Playwright MCP Server

playwright_console_logs

Retrieve and filter browser console logs for analysis. Supports searching, type-based filtering, and clearing logs. Enhance debugging and monitoring within web automation workflows.

Instructions

Retrieve console logs from the browser with filtering options

Input Schema

NameRequiredDescriptionDefault
clearNoWhether to clear logs after retrieval (default: false)
limitNoMaximum number of logs to return
searchNoText to search for in logs (handles text with square brackets)
typeNoType of logs to retrieve (all, error, warning, log, info, debug)

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)", "enum": [ "all", "error", "warning", "log", "info", "debug" ], "type": "string" } }, "required": [], "type": "object" }
ID: iiafoz7ogl