chrome_get_element_attributes
Retrieve all attributes of a page element by CSS selector, including computed styles, outerHTML, and bounding box, to inspect or debug its rendered state.
Instructions
Get all attributes of a specified element by CSS selector on the current page, including computed style, outerHTML, and bounding box.
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": {
"envId": "<envId>",
"selector": "<selector>"
},
"name": "chrome_get_element_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envId | Yes | Environment ID for the browser environment to operate. | |
| selector | Yes | CSS selector for the element to get attributes from |