Skip to main content
Glama
Winds-AI

autonomous-frontend-browser-tools

ui.inspectElement

Get comprehensive UI debugging data for selected browser elements, including CSS styles, layout issues, accessibility audits, and actionable fixes.

Instructions

Enhanced UI Debugging Context Tool - Gets comprehensive debugging information for the element selected in browser DevTools.

Prerequisite: DevTools open, element selected in Elements panel.

Returns:

  • Computed CSS styles - All applied styles for layout debugging

  • Parent/child context - Understanding element relationships and layout flow

  • Layout debugging info - Automatic detection of common CSS issues with actionable suggestions

  • Accessibility audit - ARIA attributes, focus management, semantic information

  • Interactive state - Hover, focus, click handlers, event listeners

  • Material-UI context - Component type, variants, theme integration (when applicable)

  • Performance hints - Large images, deep nesting, optimization opportunities

Autonomous AI Usage: This tool provides enough context to understand and fix UI issues without additional tool calls. Use the layoutDebug.issues and layoutDebug.suggestions arrays for immediate actionable insights.

Best used in workflow: Screenshot → Select Element → Enhanced Inspect → Apply Fixes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does an excellent job describing what information is returned (computed CSS styles, parent/child context, layout debugging, accessibility audit, etc.) and how the tool behaves (provides actionable suggestions, detects common CSS issues). However, it doesn't mention potential limitations like browser compatibility or performance characteristics.

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

Conciseness4/5

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

The description is well-structured with clear sections (Prerequisite, Returns, Autonomous AI Usage, Best used in workflow) and uses bullet points effectively. While comprehensive, it could be slightly more concise as some bullet points contain redundant phrasing. Every sentence adds value, but there's minor room for tightening.

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?

Given the tool's complexity (comprehensive debugging tool) with no annotations and no output schema, the description does an excellent job explaining what the tool returns and how to use it. However, without an output schema, the description could benefit from more specific details about the return format structure. The description compensates well but doesn't fully replace a proper output schema.

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?

The tool has zero parameters with 100% schema description coverage, so the baseline would be 4. The description appropriately explains that no parameters are needed because the tool works with the currently selected element in DevTools, which adds valuable context beyond the empty schema.

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 states the tool's purpose as 'Gets comprehensive debugging information for the element selected in browser DevTools' with specific details about what information is retrieved. It distinguishes itself from sibling tools like browser.screenshot and ui.interact by focusing specifically on element inspection rather than general interaction or screenshot capture.

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 usage guidance including prerequisites ('DevTools open, element selected in Elements panel'), when to use it ('Best used in workflow: Screenshot → Select Element → Enhanced Inspect → Apply Fixes'), and autonomous usage context ('This tool provides enough context to understand and fix UI issues without additional tool calls'). It clearly positions this as a specialized debugging tool distinct from general browser tools.

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/Winds-AI/Frontend-development-MCP-tools-public'

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