Inspect Element
inspect_elementRetrieve an element's attributes, computed styles, and bounding rectangle to debug layout issues, verify click coordinates, or audit page elements.
Instructions
Attrs + computed style + rect of one element. For debug, click_at coords, audit.
Ex: inspect_element('t0', '#submit') → {"_untrusted":true,"tag":"button","attrs":{...},"rect":{x,y,w,h},"computed":{...}}
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": {
"tab_id": "<tab_id>",
"selector": "<selector>"
},
"name": "inspect_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| selector | Yes | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||