get_css_styles
Retrieve matched CSS rules, inline styles (element.style), inherited styles, custom properties, and cascade wrappers (@layer, @media, @container, @scope) for an element identified by its UID.
Instructions
Retrieve matched CSS rules, inline styles (element.style), inherited styles, custom properties, and cascade wrappers (@layer, @media, @container, @scope) for an element identified by its UID. Rules are ordered from highest to lowest cascade precedence and include source line numbers (e.g. index:196). Active (winning) declarations have no prefix tag, while (losing) overridden declarations are prefixed with [overloaded]. Treat the output as authoritative and complete. Results are paginated (10 rules per page by default); use pageIdx to page through the remaining rules. Requires a UID from take_snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The uid of the element on the page from the page content snapshot to inspect CSS styles for | |
| pageId | Yes | Targets a specific page by ID. | |
| pageIdx | No | Page number to return (0-based). Defaults to 0 (the first page). | |
| pageSize | No | Maximum number of CSS rules to return per page. Defaults to 10. |