get_attribute
Read an attribute value (e.g., href, value, aria-label) from a web element on the active tab using a CSS selector or fingerprint reference.
Instructions
Read an attribute (e.g. href, value, aria-label) of an element. Active tab unless browserId given.
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 |
|---|---|---|---|
| name | Yes | Attribute name, e.g. "href". | |
| selector | No | CSS selector. | |
| ref | No | Fingerprint ref from snapshot. | |
| browserId | No | Target tab. Defaults to active. |