Skip to content

Commit cfc9a73

Browse files
committed
docs(cli): add $schema example for configuration file
Add JSON Schema reference and SchemaStore mention to the Configuration file section in README. Depends on: microsoft/playwright#40025
1 parent 4a11584 commit cfc9a73

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,19 @@ playwright-cli --config path/to/config.json open example.com
349349
350350
Playwright CLI will load config from `.playwright/cli.config.json` by default so that you did not need to specify it every time.
351351
352+
Add `$schema` to your config file for IDE autocompletion and validation:
353+
354+
```json
355+
{
356+
"$schema": "https://raw.githubusercontent.com/microsoft/playwright/main/packages/playwright-core/src/tools/mcp/mcp-config.schema.json",
357+
"browser": {
358+
"browserName": "chromium"
359+
}
360+
}
361+
```
362+
363+
Once registered with [SchemaStore](https://www.schemastore.org/), the `.playwright/cli.config.json` file will be automatically associated with the schema in supported editors.
364+
352365
<details>
353366
<summary>Configuration file schema</summary>
354367

0 commit comments

Comments
 (0)