--- name: screencast description: > Records reviewable browser videos — a cursor, click ring, and step captions drawn on the page, dead waits cut, H.264 mp4 out, a per-step timings file and contact sheet beside it — for a scripted scene list (with animated highlights that point at what to look at, and long waits sped up), a test runner's raw Playwright video, or a Chrome tab driven by another tool (recorded over the DevTools protocol). Triggers on "record this interaction", "screen recording", "make a video of", "highlight it in the video", "/screencast". disable-model-invocation: false argument-hint: ' [--narrate] | finish ... --out .mp4 | capture start|step|stop --out .mp4' license: MIT metadata: author: mthines version: '2.2.0' workflow_type: applied tags: [playwright, video, recording, evidence, ffmpeg] --- # screencast Scripts do the work; this file lists only what differs from a plain Playwright `recordVideo` + `ffmpeg` job. | Script | Use | | --- | --- | | [`scripts/record.mjs`](./scripts/record.mjs) `` | Scripted scenes (caption + `click`/`hover`/`type`/`press`/`scroll`/`wait`/`highlight`/`waitFor`/`ensure` steps, `fastForward` per scene); schema in the file header. Run from a directory where `playwright` resolves | | [`scripts/overlay.js`](./scripts/overlay.js) | A test runner's own recording: `context.addInitScript({ path })`, then `window.__rec.step(label)` per step | | [`scripts/finish.mjs`](./scripts/finish.mjs) `... --out .mp4` | Any raw video(s) + sibling `.timings.json` → the outputs below. `--crop x,y,w,h`, `--max-width 768` for `video-analyser`, `--no-trim` | | [`scripts/capture.mjs`](./scripts/capture.mjs) `launch [--port 9222] \| disconnect \| start --url \| step "