charlotte_find
Search for elements on a webpage by text, role, type, CSS selector, or spatial proximity. Returns element IDs for interaction tools.
Instructions
Search for elements matching criteria. Filters interactive elements by text, role, type, or spatial proximity. Use the selector parameter to find DOM elements by CSS selector — this reaches elements not in the accessibility tree (custom widgets, non-semantic divs). Selector results return Charlotte element IDs usable with click, hover, drag, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text content to search for (case-insensitive substring match) | |
| role | No | ARIA role filter | |
| type | No | Interactive element type filter (button, link, text_input, select, checkbox, etc.) | |
| near | No | Element ID — find elements spatially near this one (within ~200px) | |
| within | No | Element ID — find elements geometrically contained within this one's bounds | |
| selector | No | CSS selector to query the DOM directly. Returns elements that may not be in the accessibility tree. Results include Charlotte element IDs for use with interaction tools. |