find_all_elements
Locate all DOM elements matching a CSS selector with optional limit. Returns quickly on no match, translating timeout to a clean no-elements-found message.
Instructions
Find all elements matching a selector. Returns quickly on no match.
``limit`` caps the number of summary rows; the total count is always
accurate. Zendriver's ``select_all`` raises ``TimeoutError`` after
~10s on zero matches, which we catch and translate to a clean
"no elements found" message.
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_all_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |