browser_get_attribute
Retrieve the value of a specified attribute from an element using its selector for browser automation.
Instructions
Get an attribute value from 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 | Selector for the element | |
| attribute | Yes | Name of the attribute to get | |
| sessionId | No | Browser session ID |