Motion CSS audit
audit_motion_cssAudit pasted CSS for motion problems. Pass css (stylesheet text with @keyframes, animation and transition rules). Optional flash data you measured or know from the design: flashes_per_second, flash_area_percent (share of the screen that flashes). Flags: animation or transition of layout properties (width, height, top, left, margin, padding, font-size and similar, which force layout), paint-heavy properties, transition: all, animations or transitions with no matching prefers-reduced-motion rule, infinite animations with no animation-play-state or pause control in the CSS (WCAG 2.2.2), long durations, and flashing risk against WCAG 2.3.1 (more than three flashes in any one second, unless the flashing area is small). Flash rate from CSS is estimated from the animation duration and cannot see luminance change. Static analysis only.
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": {
"css": "<css>"
},
"name": "audit_motion_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | CSS to audit | |
| flash_area_percent | No | Share of screen that flashes, 0 to 100 | |
| flashes_per_second | No | Flashes per second, if known |