Write test file
write_testWrites a Playwright spec into the project's tests/ folder, blocks paths outside tests/, and prevents overwrites unless overwrite is enabled.
Instructions
Write a Playwright spec into the project's tests/ folder. Refuses paths outside tests/ and will not overwrite unless overwrite=true.
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": {
"path": "<path>",
"code": "<code>"
},
"name": "write_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| path | Yes | Relative to tests/, e.g. login.spec.ts | |
| overwrite | No |