query_selector_all
Extract text or attributes from all elements matching a CSS selector, enabling data collection from multiple page elements.
Instructions
Query elements by CSS selector, return text/attributes of all matches.
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": "query_selector_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| selector | Yes | ||
| attribute | No | Attribute to extract (empty = innerText) |