get_element_attribute
Retrieve the value of a specified attribute from a web page element using a CSS selector, so you can inspect links, IDs, states, or metadata during browser automation.
Instructions
Get element attribute.
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": "get_element_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| selector | Yes | ||
| attribute | Yes |