find_elements
Find elements matching a CSS selector and return count plus details for up to 20 matches, helping debug selector issues and inspect page structure; optionally include hidden elements.
Instructions
[Agent Browser] Find elements matching a selector and return details about each. Useful for debugging selector issues or understanding page structure. Returns: count, and details about each matching element (max 20). When include_hidden=False, only visible elements are counted and returned.
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 |
|---|---|---|---|
| selector | Yes | ||
| include_hidden | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |