find_element
Locate web elements by text, ARIA role, or tag. Returns the optimal CSS selector to target the element.
Instructions
Smart element finder — search by text content, role, or partial match. Returns the best CSS selector to use. Saves the agent from guessing selectors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | HTML tag filter (e.g. 'button', 'a', 'input') | |
| near | No | CSS selector of a nearby element (find elements near this one) | |
| role | No | ARIA role filter (e.g. 'button', 'link', 'textbox') | |
| text | No | Text content to search for (partial match) | |
| session_id | Yes | Session ID | |
| max_results | No | Max results (default: 5) |