test_export_playwright
Generate a saved test as a Playwright or Jest TypeScript spec, embedding sub-flows as functions. Optionally write the file to exports/.spec.ts.
Instructions
Generates the code of a saved test as a TypeScript spec (.spec.ts), in Playwright (@playwright/test) or Jest (jest-environment-playwright) format, with sub-flows embedded as functions. Returns the content; with write: true it saves the file into exports/.spec.ts like the app.
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": {
"name": "<name>"
},
"name": "test_export_playwright"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the saved test | |
| write | No | Write the file into exports/ (default false) | |
| format | No | Format of the generated spec (default "playwright") |