search_page_elements
Search page elements by type, text, class, or event. Retrieve matching elements with complete attributes, styles, and bindings for analysis.
Instructions
Search/filter elements within a page source. Returns matching elements with full detail (id, type, style, text, classes, etc.). Examples:
Find all buttons: type="button"
Find elements with custom class: custom_class="hero"
Find text containing "subscribe": text="subscribe"
Find all data-bound elements: has_bind=true
Find all elements with events: has_events=true
Find all elements with custom CSS classes: has_custom_class=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by element ID substring (e.g. 'TEXT', 'BUTTON-3') | |
| text | No | Filter by text content substring | |
| type | No | Filter by element type (e.g. 'text', 'button', 'image', 'container', 'section', 'form', 'input') | |
| limit | No | Max results (default 50) | |
| page_id | Yes | Page ID | |
| has_bind | No | Only elements with data bindings (product, category, blog) | |
| has_events | No | Only elements with events (click, submit, mouseenter, etc.) | |
| custom_class | No | Filter by custom class substring | |
| has_custom_class | No | Only elements that have a custom class |