Skip to main content
Glama

Search Elements

elementor_find_elements
Read-onlyIdempotent

Search a WordPress page's Elementor elements by widget type, CSS class, element ID, or content text; combine filters with AND logic to locate specific widgets.

Instructions

Search for elements within a page by widget type, CSS class, element ID, or content text. All filters are combined with AND logic.

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_find_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID
cssClassNoFilter by CSS class name (partial match)
elementIdNoFilter by custom element ID (_element_id setting)
widgetTypeNoFilter by widget type (e.g. heading, html, image, text-editor, video, form)
contentTextNoSearch in element content text (case-insensitive, searches title/html/editor/custom_css)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely new behavioral fact — that all filters combine with AND logic — but says nothing about what is returned (matching IDs? full element objects?) or any result limits, which matters since no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the verb and resource, with the combination rule appended where it is most useful. No redundant restatement of the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only filtered search with five fully documented parameters, the coverage is close but there is no output schema and the description never says what a match looks like or how many are returned. Adding one clause on the return shape would make this complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with per-parameter descriptions already covering partial matching, case-insensitivity, and searched fields, so the baseline is 3. The description contributes only the AND-combination rule; it does not clarify whether widgetType/elementId are exact or partial matches, which the schema also leaves unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('search for elements') plus the scope ('within a page') and the four filter axes. It implicitly separates itself from elementor_search_all_pages by scoping to a single page, but never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'within a page', which suggests locating specific elements rather than reading the full tree or searching globally. There is no explicit when-to-use/when-not guidance pointing at get_element, get_page_tree, or search_all_pages, leaving the agent to infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.