capture_worker_js
Patch the page's Worker constructor to intercept and record every Worker created, enabling capture of VMP bytecode delivered via Web Workers for offline analysis.
Instructions
Patch the page's Worker constructor and record every Worker created.
Use this when VMP bytecode is delivered via a Web Worker (e.g. the page
does new Worker(blob:...) containing the VMP, then postMessage inputs
and gets signs back). After the patch is installed, leave the page alone
for duration_ms so VMP can spin up its workers.
Returns: dict with workers[] (id, url, source_preview if blob:), events[].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| max_events | No | ||
| duration_ms | No |