Skip to main content
Glama
vito1317

macos-control-mcp

by vito1317

ai_web_elements

Scan a web page to extract every button, link, input, select, and clickable element with screen coordinates for automated mouse control.

Instructions

[AI-Optimized] Scan ALL interactive elements on a web page via Chrome DevTools Protocol. Auto-launches a CDP-enabled Chrome if needed. Provide a URL to navigate to, or omit to scan the current page. Detects every button, link, input, select, textarea, and clickable element with screen coordinates for mouse_click.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL to navigate to and scan. Omit to scan current page.
cdpPortNoChrome DevTools Protocol port (default: 9222)
tabIndexNoTab index to scan (default: 0 = first page tab)
includeTextNoInclude visible static text elements like headings and paragraphs (default: false)
visibleOnlyNoOnly return elements visible in viewport (default: true)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It is upfront about the main side effect ('Auto-launches a CDP-enabled Chrome if needed') and about navigation when a URL is provided. It also clarifies that the result includes screen coordinates intended for mouse_click, giving agents a concrete sense of the output shape. Exact return format and tab-state changes are not disclosed, but the core behaviors are covered.

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 front-loaded with the action and mechanism, and each sentence adds either launch behavior, usage context, or element-type detail. The '[AI-Optimized]' tag is mild filler, and 'ALL interactive elements' overlaps slightly with the later enumeration, but overall it is compact and easily parsed.

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?

For a scan tool with no required parameters and no output schema, the description covers the main inputs, the optional Chrome launch behavior, and the kind of results returned. It would be even stronger with explicit return-structure details and an explicit contrast to ai_screen_elements or accessibility_tree, but an agent has enough context to invoke it correctly.

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

Parameters3/5

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

All five parameters already have complete schema descriptions, so the baseline is 3. The description adds little beyond restating URL semantics and emphasizing the coordinate output for mouse_click; it does not clarify cdpPort, tabIndex, includeText, or visibleOnly beyond what the schema already provides.

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?

Describes a specific action ('Scan ALL interactive elements'), a concrete resource ('a web page'), a mechanism ('Chrome DevTools Protocol'), and an output detail ('screen coordinates for mouse_click'). The enumeration of element types makes it clear that this targets DOM/web elements, distinguishing it from screen-based or accessibility-tree sibling tools.

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

Usage Guidelines3/5

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

Provides direct invocation guidance: supply a URL to navigate and scan, or omit it to scan the current page, and notes that Chrome will auto-launch if needed. However, it never explicitly says when to choose this tool over close siblings like ai_screen_elements or accessibility_tree, so the comparative usage decision is left to inference.

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

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/vito1317/macos-control-mcp'

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