Analyze run history
analyze-historyAnalyze local Playwright run history to rank flaky tests, group failures by cause, and view one test's pass/fail timeline.
Instructions
Analyze the local run history (.playwright-e2e-mcp/history.jsonl, written by every run): 'flaky' ranks tests that flip pass/fail and lists broken or regressed ones; 'patterns' groups failures by cause; 'test' shows one test's timeline.
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' | |
| limit | No | ||
| lastRuns | No | Runs to analyze (default 30) | |
| projectRoot | No |