trim_trace_archive
Reduce Playwright trace zip size by removing screenshots outside the critical failure window, returning original vs trimmed size and the new archive path.
Instructions
Shrinks a Playwright trace zip file by deleting screenshots outside the critical failure window (t_fail - 5s to t_fail + 1s). Returns original vs trimmed size and path to the new archive (.trimmed.zip).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trace_path": "<trace_path>"
},
"name": "trim_trace_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_path | Yes | Absolute path to trace.zip, or a URL (https://) to download it from | |
| divergence_only | No | If true, removes screenshots outside the critical failure window. If false, leaves them intact. |