Get Element Layout Context
elementor_get_element_contextRetrieves an Elementor element with its own settings, ancestor container layout settings and mobile variants, plus sibling summaries to debug layout and spacing issues.
Instructions
Get an element with full layout context: its own settings, all ancestor containers' layout settings (flex_direction, width, overflow, gap, margin, padding + mobile variants), and sibling element summaries. Essential for debugging layout and spacing issues.
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_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | WordPress post/page ID | |
| elementId | Yes | Elementor element ID |