darklens_audit_html
Audit raw HTML or JSX markup for dark patterns such as pre-checked auto-renewal boxes, confirmshaming copy, fake countdown timers, hidden fees, and missing reject buttons before shipping to production.
Instructions
Audit raw HTML, JSX, or component markup for dark patterns (pre-checked auto-renewal checkboxes, confirmshaming guilt copy, fake countdown timers, hidden fees, missing reject buttons) before committing to production.
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": {
"rawHtml": "<rawHtml>"
},
"name": "darklens_audit_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional URL context (default: 'https://localhost:3000'). | https://localhost:3000 |
| failOn | No | Failure criterion. Default is 'score'. | score |
| rawHtml | Yes | The raw HTML or JSX markup to inspect for dark patterns. | |
| threshold | No | Minimum acceptable passing compliance score (0-100). Default is 70. |