Skip to main content
Glama

click

Click page elements using CSS selector, element reference, or visible label text to trigger navigation, form submission, or dynamic content changes, then returns the updated page state.

Instructions

Click on a page element identified by CSS selector, @eN reference, or visible label text. May trigger navigation, form submission, or dynamic content changes. Returns post-action page_state. Use 'selector' for CSS/ref-based targeting; use 'text' (with optional 'role' and 'region') to activate a button, tab, checkbox, or link by its visible label — useful for SPA admin UIs and modals where CSS paths are fragile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoOptional ARIA role filter when using 'text' (e.g. 'button', 'tab', 'checkbox', 'menuitem'). Narrows the match.
textNoActivate by visible label text instead of a selector. Finds the interactive element whose accessible name best matches this text. Mutually exclusive with 'selector'.
widenNoWhen true, return the full-page diff instead of scoping to the interacted container. Default: false.
regionNoOptional region handle (@r1, @r2…) or semantic token ('dialog', 'main', 'sidebar') to constrain the text search to a specific UI area.
selectorNoCSS selector or @eN element reference from page_map (e.g. "@e3", "button.submit", "#login-btn"). Mutually exclusive with 'text'.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that clicking may trigger navigation, form submission, or dynamic changes, and returns post-action page_state. It mentions the 'widen' parameter for full-page diff. This provides adequate transparency for a click action.

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?

Three sentences: first states action, second details effects, third gives usage guidance. No redundancy, every sentence earns its place.

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?

No output schema, but description mentions return value (post-action page_state). Covers main parameters and their use. Could be slightly more explicit about waiting behavior, but generally complete for a click tool.

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 coverage is 100%, but description adds value by summarizing the two targeting modes, explaining mutual exclusivity, and highlighting use cases (SPA, modals). It clarifies the function of 'region' and 'role' beyond their schema descriptions.

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 action: 'Click on a page element'. It specifies multiple targeting methods (CSS selector, @eN reference, visible label text) and mentions possible outcomes (navigation, form submission, dynamic content changes). This distinguishes it from siblings like click_at (coordinate-based) and hover.

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

Usage Guidelines4/5

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

Provides clear guidance: 'Use selector for CSS/ref-based targeting; use text...' and gives context (SPA admin UIs, modals). However, it does not explicitly compare with alternatives like click_at or hover, missing 'when not to use' guidance.

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/Mingye-Lu/AgenticCrawler'

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