element_find_all
Find all elements matching a locator using CSS, XPath, text, or attribute syntax. Returns a list of element IDs, or empty list if none match.
Instructions
Find all matching elements. Returns list with element_id for each.
Locator syntax: #id | .class | @attr=val | text:str | tag:name |
css:selector | xpath:expr | @@a@@b (AND) | @|a@|b (OR)
Returns empty list (not error) when no elements match.
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": {
"locator": "<locator>"
},
"name": "element_find_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| limit | No | ||
| parent | No | ||
| tab_id | No | ||
| locator | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |