Run Playwright tests
run_testsExecute Playwright tests in the project and return per-test results, including failure errors, locations, and the failing locator to pass to locator healing.
Instructions
Run Playwright Test in the project and return per-test results. Failures include the error, its location and, when the cause was a locator, the locator Playwright was waiting for (pass it to heal_locator).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Only run tests whose title matches | |
| spec | No | Spec file relative to tests/; omit to run everything | |
| project | No | Only this Playwright project from playwright.config, e.g. "Mobile Safari"; omit to run all projects |