generate_test
Generate executable Playwright test scripts from test steps to automate browser testing. Converts actions like clicks, fills, and assertions into ready-to-run code.
Instructions
Generate a Playwright test script from test steps. Returns executable code that can be saved and run independently.
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": {
"testName": "<testName>",
"steps": "<steps>"
},
"name": "generate_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testName | Yes | Name of the test | |
| steps | Yes | Array of test steps | |
| language | No | Programming language for the test script (default: typescript) |