pilot_page_css
Retrieve the computed CSS property value of any element using its reference or selector. Resolves all CSS rules and inheritance to give the final styling value.
Instructions
Get the computed CSS property value for a specific element. Use when the user wants to check styling details (colors, fonts, dimensions, spacing), debug CSS issues, or verify that styles are applied correctly. Returns the final computed value after all CSS rules and inheritance are resolved.
Parameters:
ref: Element reference from snapshot (e.g., "@e3") or CSS selector
property: CSS property name in kebab-case or camelCase (e.g., "color", "font-size", "backgroundColor", "display")
Returns: The computed CSS property value as a string (e.g., "rgb(255, 0, 0)", "16px", "flex").
Errors:
"Element not found": The ref is stale. Run pilot_snapshot to get fresh refs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref or CSS selector | |
| property | Yes | CSS property name (e.g. color, font-size) |