find_elements
Find matching page elements by CSS, XPath, or other selectors to retrieve tag, text, attributes, and visibility details.
Instructions
Find and inspect elements matching a selector, returning tag, text, attributes, and visibility.
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": {
"selector": "<selector>"
},
"name": "find_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum elements to inspect and return (default: 20) | |
| selector | Yes | Selector to find multiple elements | |
| strategy | No | Strategy to find element (css, xpath, id, name, tag, class, text, partialText). Default: css | css |