Analyze run history
analyze-historyAnalyze local Playwright run history to rank flaky tests, group failure patterns, track slow tests and trends, and name the commit where each failure began.
Instructions
Analyze the local run history (.playwright-e2e-mcp/history.jsonl, written by every run and load-report): 'flaky' ranks tests that flip pass/fail and lists broken or regressed ones; 'patterns' groups failures by cause; 'test' shows one test's timeline; 'slow' ranks durations and slowdowns; 'trend' shows stability per day; 'commits' names the commit where each failing or flaky test went bad.
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": "analyze-history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | Filter: substring of file or title | |
| view | No | Default 'flaky'; 'slow' ranks durations, 'trend' is per day, 'commits' names the commit each test went bad | |
| limit | No | ||
| source | No | With a shared history server (PW_MCP_HISTORY_URL): 'both' (default) merges this machine's runs with CI runs from it; 'cloud' or 'local' for one side | |
| lastRuns | No | Runs to analyze (default 30) | |
| projectRoot | No |