Get Compiled CSS
elementor_get_compiled_cssReads the Elementor-compiled CSS for a WordPress page and optionally filters rules by element ID to reveal the actual CSS generated from element settings.
Instructions
Read the Elementor-compiled CSS file for a page (post-{id}.css from /uploads/elementor/css/). Optionally filter to only rules matching a specific element ID. Use this to see the actual CSS Elementor generates from element settings.
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": {
"postId": "<postId>"
},
"name": "elementor_get_compiled_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | WordPress post/page ID | |
| elementId | No | Optional: filter CSS to only rules matching this element ID |