Skip to main content
Glama
HyperClockUp

DrissionPageMCPServer_Modified

by HyperClockUp

click_element

Click web page elements using optimized selectors for browser automation. Follow structured workflows: confirm element existence with screenshots, analyze DOM structure, then execute clicks based on verified selectors.

Instructions

点击页面元素(智能优化版)

        ⚠️ 重要提示:使用此工具前,请务必遵循标准化工作流程:
        1. 📸 先使用 take_screenshot() 确认目标元素存在
        2. 🔍 使用 get_dom_tree() 或 find_elements() 分析页面结构
        3. 🎯 基于准确信息构建选择器,禁止猜测元素名称
        
        🎯 选择器优先级(推荐顺序):
        - ID选择器:#element-id (最优先)
        - CSS类选择器:.class-name
        - 属性选择器:[data-testid="value"]
        - XPath选择器://div[@class="example"]
        - 文本匹配:仅作为辅助手段

        Args:
            selector: 元素选择器(禁止猜测,必须基于实际DOM结构)
            selector_type: 选择器类型 (css, xpath, text)
            index: 元素索引(当有多个匹配时,从0开始)
            smart_feedback: 是否启用智能反馈(推荐True)

        Returns:
            str: 操作结果和反馈信息
            
        💡 最佳实践示例:
        - 正确:先 find_elements("button") 确认按钮存在,再 click_element("#submit-btn")
        - 错误:直接 click_element("#可能存在的按钮") 而不确认元素
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYes
selector_typeNocss
indexNo
smart_feedbackNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does an excellent job disclosing behavioral traits. It explains the smart optimization aspect, provides selector priority recommendations, warns against guessing selectors, and includes best practice examples showing correct vs. incorrect usage patterns. The only minor gap is lack of explicit mention about what happens on failure scenarios.

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

Conciseness3/5

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

The description is appropriately front-loaded with the purpose and critical warnings, but contains some organizational inefficiencies. The emoji decorations and formatting with multiple sections (workflow, selector priority, args, returns, best practices) create visual clutter. While all content is valuable, the presentation could be more streamlined for an AI agent.

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

Completeness5/5

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

Given the complexity of a browser automation tool with 4 parameters, no annotations, and an output schema, the description is remarkably complete. It covers purpose, prerequisites, usage workflow, parameter guidance, selector strategies, best practices, and includes return value information. The presence of an output schema means the description doesn't need to detail return values, and it appropriately focuses on usage context.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by providing detailed parameter semantics. It explains all 4 parameters: selector (with strict requirements against guessing), selector_type (with recommended types and priority order), index (explains it's zero-based for multiple matches), and smart_feedback (recommends True). This adds significant value beyond the bare 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 '点击页面元素(智能优化版)' which translates to 'click page element (smart optimized version)'. It specifies the exact action (click) and resource (page element), and distinguishes itself from siblings like find_elements or get_element_text by focusing on the clicking action with smart optimization features.

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 guidelines with a standardized workflow: 1) use take_screenshot to confirm element existence, 2) use get_dom_tree or find_elements to analyze page structure, 3) build selectors based on accurate information. It also specifies when NOT to use the tool ('禁止猜测元素名称' - no guessing element names) and references sibling tools for prerequisite steps.

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/HyperClockUp/DrissionPageMCPServer_Modified'

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