browser_inspect
Inspects an element's box, spacing, overflow, and computed styles, and lists matching CSS rules with source file and line so you can find which rule to fix.
Instructions
Explain an element's layout: box size and position, margin/border/padding, key computed styles, overflow, parent, and the CSS rules that style it with their source file and line — use it to find which rule to change when fixing the frontend.
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": "browser_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12". Preferred over selector. | |
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| selector | No | CSS selector, "text=Sign in" (visible text), or "xpath=//button". Searches open shadow roots too. | |
| properties | No | Extra computed CSS properties to report. | |
| matchedRules | No | Include matching CSS rules with source locations. |