Find Latest Playwright Trace
find_latest_traceRecursively searches test-results/ and playwright-report/ for a newly created trace.zip, returning its path, size, and timestamp as JSON. Use it to confirm a trace exists before triage.
Instructions
Recursively searches test-results/, playwright-report/, and project subdirectories under baseDir (defaults to cwd) for the newest Playwright trace.zip file. Returns JSON with { found, tracePath, sizeBytes, lastModified }, or { found: false, message } when no trace exists (does not throw on empty results). Use before other tools to verify a trace exists or inspect its timestamp; do not use when you already have a tracePath and want immediate triage (use triage_failure directly).
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": "find_latest_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseDir | No | Absolute or relative base directory to search from (e.g. ./e2e). Defaults to the current working directory. |