getAttribute
Retrieve the value of a specified attribute from an element identified by a CSS selector during Electron app testing.
Instructions
Get attribute value of an element
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>",
"attribute": "<attribute>"
},
"name": "getAttribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector | |
| attribute | Yes | Attribute name |