devtools_elements
Inspect DOM elements and computed CSS styles for a tab, replicating the DevTools Elements panel to debug layout and styling issues.
Instructions
Inspect DOM elements and computed CSS styles for a tab. Equivalent to the DevTools Elements panel.
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": "devtools_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Target tab ID (from browser_tabs list). Uses active tab if omitted. | |
| agentId | No | Agent identifier for parallel execution. Pass a unique ID (e.g. 'C1', 'J2') — the server automatically routes calls to this agent's dedicated tab (registered via browser_tabs action=new). | |
| selector | Yes | CSS selector of the element to inspect | |
| includeStyles | No | Include computed CSS styles (default: false) |