Skip to main content
Glama

Inspect localhost UI

inspect_localhost_ui
Read-only

Inspect a local web page by capturing a screenshot, console errors, and a DOM snapshot with CSS classes to debug layout, responsive breakpoints, and hydration issues.

Instructions

Gives you eyes on a locally running web app. Opens the URL in a headless Chromium browser and returns (1) a screenshot of the rendered page, (2) any console errors/warnings and failed network requests, and (3) a token-optimized DOM snapshot that preserves ids and CSS/Tailwind classes. Use it to verify or debug UI work instead of guessing: layout and alignment bugs, overflow, spacing, responsive breakpoints, hydration errors and missing assets. Read the classes in the DOM snapshot before proposing a fix so you edit real selectors. Only local addresses (localhost / private network) are permitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesLocal URL to inspect, e.g. http://localhost:3000 or http://localhost:5173/dashboard. Must be localhost, 127.0.0.1, or a private-network address.
delayNoMilliseconds to wait after page load before capturing, to allow hydration, animations or data fetching to finish.
fullPageNoCapture the entire scrollable page instead of just the viewport. Useful for long landing pages; produces a taller image.
viewportNoViewport to emulate: desktop (1920x1080), tablet (820x1180) or mobile (390x844). Use mobile to debug responsive layouts.desktop
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark readOnlyHint=true. The description adds behavioral context: opens URL in headless Chromium, captures outputs, and restricts to local addresses. It does not mention any destructive actions, consistent with the annotation. Slight deduction for not explicitly stating it is read-only beyond the annotation, but the description's detail is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose, followed by output list, use cases, operational guidance, and constraints. Every sentence adds value without repetition or fluff. Length is appropriate for the information conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description adequately explains what is returned (screenshot, errors, DOM snapshot). However, it lacks detail on return format (e.g., image encoding, error structure). Still, for a tool this size, it provides sufficient context to set expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds extra context beyond schema, e.g., 'Use mobile to debug responsive layouts' for viewport, and implies delay purpose. This warrants a slight above-baseline score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly defines the tool's function: 'Gives you eyes on a locally running web app.' It lists specific outputs (screenshot, console errors, DOM snapshot) and directly ties to debugging UI issues. No siblings exist, so differentiation is not required.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: 'verify or debug UI work instead of guessing' with concrete examples like layout bugs, hydration errors, etc. It also advises reading DOM classes before proposing fixes and notes the address restriction, leaving no ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/soumyachk101/VibeLens'

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