e2e_generate_playwright
Convert E2E test scenarios in Given/When/Then or plain text into executable Playwright code. Specify base URL and API key to generate tests ready for your application.
Instructions
Generate Playwright test code from E2E test scenarios
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": {
"scenarios": "<scenarios>"
},
"name": "e2e_generate_playwright"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| base_url | No | Base URL of the application under test | |
| scenarios | Yes | E2E test scenarios in Given/When/Then or plain text format |