Run Playwright tests
run_testsRun a Playwright suite or filtered subset, return a compact summary and run_id, and stop the run at a set timeout. Use the run_id with result tools to inspect failures.
Instructions
Run the Playwright suite, or a filtered part of it, and return a compact summary plus a run_id. Use get_results or get_failure_details with that run_id for detail. A run that goes past the timeout is killed.
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 |
|---|---|---|---|
| file | No | Run one spec file or folder only. | |
| grep | No | Playwright --grep pattern to filter test titles. | |
| project | No | Playwright project name, e.g. "chromium". | |
| retries | No | Retries per failing test for this run. | |
| timeout_ms | No | Kill the run after this many milliseconds. | |
| max_failures | No | Stop after this many failures. |