List Playwright tests
list_testsDiscover which Playwright tests exist in a configured project without running them. Use it to get exact test titles before filtering a run with grep.
Instructions
List the tests Playwright can see in the configured project without running them. Use it to find out what exists, or to get exact titles before filtering a run with grep.
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": "list_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Limit to one spec file or folder, e.g. "tests/login.spec.ts". | |
| grep | No | Playwright --grep pattern to filter test titles. | |
| project | No | Playwright project name, e.g. "chromium". | |
| timeout_ms | No | Abort the listing after this many milliseconds. |