browser_find_elements
Find all page elements matching a CSS selector and retrieve their index, tag, text, id, class, href, and other attributes for inspection or enumeration.
Instructions
Return a list of all elements matching a CSS selector.
Each entry contains: index, tag, text (first 200 chars), id, class, href, src, value, type, name, visible, and aria-label.
Useful for enumerating links, buttons, inputs, or any repeated component.
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": "browser_find_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max elements to return | |
| selector | Yes | CSS selector |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |