browser_get_attribute
Retrieves the value of any attribute from an element in the browser using its CSS selector. Extracts data like href, src, or custom attributes for automation.
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": "browser_get_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element | |
| attribute | Yes | Attribute name |