detect_performance_anomalies
Detect performance anomalies in Playwright traces, distinguishing main-thread blocking from network saturation or navigation timeouts via long tasks, frame drops, and slow action analysis.
Instructions
Detects Long Tasks and frame drops that cause Playwright timeouts. Analyses screencast-frame timestamps for main-thread blocking (gaps > 50ms), flags actions that took longer than 500ms, counts concurrent in-flight network requests during each slow action, and checks for monotonically increasing action durations (suspected memory leak). Returns a ranked list of anomalies with a suspected_cause so the agent can distinguish a blocked main thread from network saturation or a navigation timeout — without blaming a missing element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| frame_drop_threshold_ms | No | Screencast frame gaps longer than this count as a drop (default 50ms) | |
| slow_action_threshold_ms | No | Actions longer than this are flagged (default 500ms) |