Audit a page for suspicious visual conditions
visual_auditRenders a page across CSS-derived viewports and returns ranked suspicious visual findings—invisible text, clipping, overlaps, overflow, contrast—each with a question for you to judge.
Instructions
Renders a URL at a matrix of viewports derived from the project's own CSS breakpoints and returns a ranked index of EVERYTHING that looked suspicious: invisible text, clipping, overlaps, occlusion, overflow, off-screen elements, contrast, zero-size content. It does not decide what is a bug — each finding carries a question for you to answer. Returns no images (use visual_describe for those). Reserved health: fast=1 pass and no info-level rules; deep=multiple passes, info-level rules, more viewports.
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": {
"url": "<url>"
},
"name": "visual_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL, path relative to baseUrl, or local HTML file path (read from the filesystem if it exists). | |
| mode | No | fast (default) = 1 pass, geometry only. deep = repeat passes and include info-level rules. | |
| rules | No | Restrict to specific rules. Available: zero-size-with-content, overflow-clipped, overlap-static-siblings, interactive-occluded, element-offscreen, document-horizontal-overflow, text-truncated, text-spills-outside-box, fill-available-indefinite-height, tiny-hit-target, visually-hidden-pattern, text-same-as-background, low-contrast, invisible-text, forced-colors-shadow-only, forced-colors-background-image. | |
| engine | No | Rendering engine. Default from config (chromium). Use webkit to audit what Safari users see. | |
| viewports | No | Override the derived viewport matrix. Omit to derive it from CSS breakpoints. | |
| conditions | No | Rendering conditions to audit under. Each one costs a full viewport sweep. pseudo-i18n inflates every word by 40% to find layouts that only work in English; text-zoom scales the root font to 200%. Default: config (['default']). | |
| maxFindings | No | Budget of findings to return (default from config, 40). |