elementor/get-element returns the element at a seven-character hex ID for a post, along with its parent-ID path from the root.
The path is the part that makes this usable rather than merely informative.
At a glance
| Ability | elementor/get-element |
| Toolset | Elementor — toolset/elementor |
| Group | Elementor › Elements & Widgets |
| Requires | Elementor, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
An Elementor document is a tree of elements serialised to JSON and stored in the _elementor_data post meta. Every element carries a seven-character hex ID, a type, its settings, and its children. Nothing about that structure is validated by WordPress, so a malformed write produces a document the editor refuses to open.
An element ID on its own tells you nothing about where the element is. A heading could be at the root, inside a container, inside a column inside a section — and the operations you might want next all need the parent.
So the path comes back with it: the chain of parent IDs from the root down. That is what elementor/move-element and elementor/reorder-elements need, and what tells you whether deleting this element takes anything else with it.
The settings come back as stored. Elementor’s control keys are not always guessable from the editor labels, so reading a working element is often the fastest way to learn what a setting is called.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
post_id | integer | Yes | The post holding the Elementor document. |
element_id | string | Yes | The seven-character hex element ID. |
What comes back
| Name | Type | What it is |
|---|---|---|
element | object | The element with its type, settings and children. |
path | array | The parent IDs from the root down to this element. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
What is element a1b2c3d on page 412?
It resolves to one call:
{
"ability": "elementor/get-element",
"parameters": {
"post_id": 412,
"element_id": "a1b2c3d"
}
}Worth knowing
- The parent path is what every structural operation needs next.
- Reading a working element is the fastest way to learn a control key’s real name.
- Children come back nested, so this is a subtree read as well as an element read.
- Read-only.
Related abilities
- Find Elementor Elements — locate the ID first
- Merge Elementor Element Settings — change one setting
- Move Elementor Element — the operation the path enables
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category