Element Info
element_infoRetrieve an element's text, attributes, bounding box, visibility, and enabled state by CSS selector or other locator to inspect page state and diagnose UI issues.
Instructions
Return text, attributes, bounding box, visibility, and enabled state for 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>"
},
"name": "element_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page id. Defaults to the active page. | |
| selector | Yes | CSS selector, text=..., role=button[name="Save"], testid=..., xpath=..., or label=... |