inspect
Examine a specific element on a web page using its CSS selector, with an optional tab index parameter.
Instructions
Inspect a page element by CSS selector
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": "inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Tab index in the front window; defaults to the current tab | |
| selector | Yes | CSS selector for the target element |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | Whether the selector matched any element | |
| tag | No | Lowercase HTML tag name; present when found | |
| text | No | Trimmed visible text or aria-label or alt; present when found | |
| visible | No | Whether the element is visible in the layout; present when found | |
| disabled | No | Whether the element is disabled or aria-disabled; present when found | |
| attributes | No | Selected key attributes on the element; present when found | |
| rect | No | Viewport-relative bounding box; present when found |