playwright-report-mcp
v0.1.0MCP server that reads Playwright JSON reports and returns compact JSON answers (summary, failures, slowest tests, run comparison) so an AI agent never has to…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_summary
Totals for a Playwright JSON report: total, passed, failed, flaky, skipped and run duration in milliseconds.
| Parameter | Type | Description |
|---|---|---|
reportPath * | string | Path to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory. |
list_failures
Failed tests in a Playwright JSON report: full name, title, project and a trimmed error message for each.
| Parameter | Type | Description |
|---|---|---|
reportPath * | string | Path to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory. |
includeFlaky | boolean | Also list tests that failed and then passed on retry |
maxErrorChars | integer | Maximum characters of each error message |
slowest_test
The N slowest tests in a Playwright JSON report, with their execution times in milliseconds.
| Parameter | Type | Description |
|---|---|---|
reportPath * | string | Path to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory. |
limit | integer | How many tests to return (N) |
compare_reports
Compare two Playwright JSON reports (baseline vs current): newly failed, newly passed, still failing, added and removed tests, plus per-test execution time changes.
| Parameter | Type | Description |
|---|---|---|
baselinePath * | string | Path to the baseline (earlier) Playwright JSON report |
currentPath * | string | Path to the current (later) Playwright JSON report |
limit | integer | Maximum execution time changes to return |
maxErrorChars | integer | Maximum characters of each error message |
minDurationDeltaMs | integer | Only report execution time changes of at least this many milliseconds |
get_execution_times
Execution time in milliseconds of every test in a Playwright JSON report.
| Parameter | Type | Description |
|---|---|---|
reportPath * | string | Path to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory. |
limit | integer | Maximum tests to return |
sort | string | Ordering of the tests; 'report' keeps the order of the report file |
get_test_details
Everything the report holds about one test, looked up by name: status, location, every attempt with its error, code snippet and attachments.
| Parameter | Type | Description |
|---|---|---|
name * | string | Test title or full name ('file › describe › title'); a case-insensitive fragment also matches |
reportPath * | string | Path to a Playwright JSON report (.json). Absolute, or relative to PW_REPORT_DIR / the server's working directory. |
project | string | Restrict the lookup to one Playwright project, e.g. chromium |