capture_component
Serialize any web page component into a portable rebuild pack, capturing DOM structure, computed-style tokens, and animations for design-to-code tooling.
Instructions
Serialize a page component (structure, computed-style tokens, animations) into a portable pack for rebuild tooling. Runs on any URL — does not fetch awwwards.com.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute page URL whose component to serialize | |
| maxNodes | No | Max DOM nodes to serialize (default 400, clamp 50-2000) | |
| selector | No | CSS selector of the component root (default 'header') | |
| viewport | No | desktop = 1440x900 (default); mobile = 390x844 iPhone-class with deviceScaleFactor 3, isMobile + hasTouch | desktop |