Draft a storyboard from a Playwright trace or test
import_traceConverts a Playwright trace.zip or *.spec.ts test into a demos// storyboard scaffold, using recorded actions and selectors as scenes and leaving narration placeholders for completion.
Instructions
Turn a Playwright trace.zip (context.tracing / --trace on) or a *.spec.ts test file into demos// with a draft storyboard: the run's own actions and selectors become scenes (cut at navigations and async payoffs), narration is left as placeholders, and _notes lists what was approximated. No LLM, no browser. Then write the narration and probe.
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": {
"file": "<file>",
"name": "<name>"
},
"name": "import_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | repo to scaffold into (default: server cwd) | |
| file | Yes | absolute path to trace.zip or the test file | |
| name | Yes | demo name (creates demos/<name>/) | |
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| steps | Yes | ||
| scenes | Yes | ||
| demoDir | Yes | ||
| storyboardPath | Yes |