run_lighthouse
Audit a URL with Lighthouse to get performance, accessibility, best-practices, and SEO scores. Choose mobile or desktop form factor and save the JSON report.
Instructions
Audit url with Lighthouse and return scores + report path.
- ``categories``: subset of ``performance``, ``accessibility``,
``best-practices``, ``seo``, ``pwa``. Defaults to the first four.
- ``form_factor``: ``"mobile"`` or ``"desktop"``.
- ``output_path``: where to save the JSON report. Empty => temp file.
The browser must have been started with remote-debugging exposed,
which zendriver does by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| categories | No | ||
| form_factor | No | mobile | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |