Skip to main content
Glama

browser_inspect

Inspect live browser pages to get rendered HTML, CSS cascade data, screenshots, and style comparisons. Verify what browsers actually render for accurate CSS debugging and development.

Instructions

Inspects a live browser page to get CSS and DOM information — the same data a human sees in browser DevTools. Use this before writing or debugging CSS to verify what the browser actually renders, not just what the source code says. Four actions available: 'dom' gets the rendered HTML structure, 'styles' gets the full CSS cascade, 'screenshot' captures a visual snapshot, 'diff' compares styles before and after a change. Call with action 'help' if unsure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes'dom' — get real rendered HTML and class names. 'styles' — get all CSS rules, computed values, and which rule is winning. 'screenshot' — capture a visual snapshot of an element. 'diff' — compare styles before/after a CSS change to verify it applied. 'help' — explain what this tool can do.
selectorNoCSS selector for the element to inspect (e.g. '.dropdown-menu', '#header', 'button.primary'). Required for all actions except 'help'.
urlNoURL of the running dev server (e.g. 'http://localhost:5173'). Required on the first call. Optional on subsequent calls — reuses the open browser tab.
viewportNoOptional: browser viewport size before inspecting (e.g. {"width": 375, "height": 812} for mobile). Defaults to 1440×900.
propertiesNoOptional, 'styles' action only: filter computed styles to specific property names (e.g. ['color', 'border', 'display']). If omitted, returns the most useful set by default.
paddingNoOptional, 'screenshot' action only: pixels of padding around the element (default: 8). Increase for more visual context.
resetNoOptional, 'diff' action only: pass true to discard any existing snapshot and start a fresh baseline.

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/betson-g/browser-inspector-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server