elements_list
Retrieve web page elements by selector to identify buttons, links, and other components for automation tasks in Electron applications.
Instructions
Enumerate elements matching a selector, returning basic info about each (tag, text snippet, id, key attributes, bounding box). Great for "what buttons are on this screen" or "give me all list items". Capped at 50 by default.
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": "elements_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| limit | No | Max elements to return, default 50. | |
| attributes | No | Extra attributes to include for each element (default ["aria-label","role","href","title"]). |