get_attribute
Read attributes like href or aria-label from web elements using selectors or element references in Electron applications.
Instructions
Read an attribute from the first matching element. Pass selector or ref.
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": {
"name": "<name>"
},
"name": "get_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | ||
| ref | No | Ref from snapshot. | |
| name | Yes | Attribute name, e.g. "href", "aria-label". |