audit_artifact
Audit captured HAR and Lighthouse artifacts to diagnose response failures, performance issues, and security or accessibility problems from CI runs or customer bug reports.
Instructions
[audit] Audit a captured browser artifact instead of a live URL. Use for CI-run debugging or customer bug reports without re-running the browser. Supports: har (response times, failures, payloads, security headers), lighthouse (a11y + perf JSON). playwright-trace returns INVALID_PARAMS, use audit_url.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"artifact_path": "<artifact_path>",
"artifact_type": "<artifact_type>"
},
"name": "audit_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact_path | Yes | Absolute or workspace-relative path to the artifact file on disk (e.g. "./test-results/trace.har"). | |
| artifact_type | Yes | Artifact format. Supported: "har" (HTTP Archive), "lighthouse" (Lighthouse JSON). "playwright-trace" is accepted by the enum but returns INVALID_PARAMS — use audit_url instead. | |
| url_hint | No | Canonical page URL for generating stable finding IDs (recommended — without it, findings get artifact-local IDs that do not cross-reference with audit_url runs against the live page). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |