Get Element CSS Selectors
elementor_get_element_selectorGet an Elementor element's CSS selectors and find all matching rules in WordPress Additional CSS and compiled CSS to see which styles apply.
Instructions
Get the CSS selectors for an element (.elementor-element-{id} for outer, > .elementor-widget-container for widgets) and find all matching CSS rules from both WordPress Additional CSS and Elementor compiled CSS. Essential for understanding what CSS actually applies to an element.
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>",
"elementId": "<elementId>"
},
"name": "elementor_get_element_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | WordPress post/page ID | |
| elementId | Yes | Elementor element ID |