query_elements
Find DOM elements by CSS selector with depth filtering. Retrieve tag, text, id, classes, and visibility for targeted inspection.
Instructions
Find elements by CSS selector with DOM depth filtering. Returns tag, text, id, classes, visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max elements to return | |
| selector | Yes | CSS selector (e.g., ".class", "#id", "button") | |
| max_depth | No | Max DOM depth from body (default: 3, max: 10) | |
| connection_id | No | Chrome connection to use |