count
Determine the number of elements matching a selector, including hidden ones. Use to verify list lengths, check existence, or before clicking the nth element.
Instructions
[Agent Browser] Count how many elements match a selector (includes hidden). Use to verify list lengths, check if elements exist, or before click_nth(). Returns data.count. For detailed element info, use find_elements().
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": "count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |