motion.detect
Detect and classify motion patterns from web page CSS animations, transitions, and keyframes. Identify performance and accessibility issues with configurable analysis options including external CSS fetching and summary generation.
Instructions
Detect/classify motion patterns from web page. Parses CSS animations, transitions, keyframes. Warns about performance/accessibility issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | WebPage ID (UUID, from DB) | |
| html | No | HTML content (direct, max 10MB) | |
| css | No | Additional CSS content (max 5MB) | |
| includeInlineStyles | No | Parse inline styles (default: true) | |
| includeStyleSheets | No | Parse stylesheets (default: true) | |
| minDuration | No | Minimum duration to detect (ms, default: 0) | |
| maxPatterns | No | Max patterns to detect (default: 100) | |
| includeWarnings | No | Include warnings (default: true) | |
| min_severity | No | Minimum severity level to include in warnings (default: info) | info |
| includeSummary | No | Include summary (default: true) | |
| verbose | No | Verbose mode: include rawCss (default: false) | |
| fetchExternalCss | No | Fetch external CSS from <link> tags (default: true) | |
| baseUrl | No | Base URL for resolving relative CSS paths (required if fetchExternalCss is true) | |
| externalCssOptions | No | Options for external CSS fetching | |
| save_to_db | No | Save detected patterns to motion_patterns table with embeddings (default: true) | |
| detection_mode | No | Detection mode: 'css' (requires html/pageId) for static CSS parsing without browser, 'video' (default, requires url) for visual motion detection with frame capture, 'runtime' (requires url) for JS-driven animations, 'hybrid' (requires url) for CSS+runtime combined. | video |
| url | No | Target URL for video/runtime/hybrid modes. Required when detection_mode='video', 'runtime', or 'hybrid'. | |
| detect_js_animations | No | Enable JavaScript animation detection via CDP + Web Animations API. Requires Playwright. Default: false (disabled for performance). | |
| timeout | No | Overall timeout in milliseconds (30000-600000, default: 180000 = 3 minutes). On timeout, returns partial results with warnings (graceful degradation). |