inspect_live_element
Inspect a live DOM element by CSS selector, node ID, XPath, or element reference to retrieve its bounds, computed styles, visibility, attributes, state, ARIA roles, and parent context.
Instructions
Deeply inspect a live DOM element on the active browser page by CSS selector, LogicalNodeId, or selectedElementRef, returning bounds, computed styles, visibility, attributes, state, role, aria, and parent context.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inspect_live_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | No | XPath expression for the element | |
| nodeId | No | LogicalNodeId of the element if recorded | |
| selector | No | CSS selector of the target element | |
| selectedElementRef | No | Reference token of the last selected element |