List available tests
list-testsLists Playwright tests in the project with file, line, title, and project details, supports optional filtering, and falls back to a source scan with the reason when setup or config is broken.
Instructions
List the Playwright tests available in the project (file, line, full title, projects), with optional filtering. Uses playwright test --list when Playwright works and falls back to a source scan when the install or config is broken, reporting why.
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 |
|---|---|---|---|
| limit | No | Max tests to return (default 500) | |
| config | No | playwright.config path or 1-based index when the project has several configs | |
| filter | No | Case-insensitive substring filter on "file › title" | |
| testDir | No | Restrict scanning to this directory (inside the project) | |
| projectRoot | No | Project directory; defaults to the server working directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false when the call failed (see error) or the tests it ran failed | |
| error | No | ||
| tests | No | ||
| total | No | ||
| truncated | No |