Skip to main content
Glama
yinnho

AginxBrowser

session_click

Clicks a page element by its index in a live browser session, re-verifying it remains attached, enabled, visible, and uncovered. Returns clicked:false with a reason if the element changed or is covered.

Instructions

Click an interactive element by its index (from session_state output) inside a live browser session: scrolls it into view and fires a DOM click on the session's current page. Before clicking it re-verifies the element in the same frame — if the page changed since session_state (element detached, disabled, hidden, or covered by an overlay), it returns clicked:false with a reason ("detached"/"disabled"/"not_visible"/"covered_by") and, when covered, a covered_by description of the element that would eat the click — never a silent no-op. A submit click may navigate the session — the returned url/text_after reflect the page after the action, and session state (cookies, localStorage, globals) persists for follow-up calls. Indexes come from the most recent session_state; re-list after navigation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYesElement index (from /state output)
session_idYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • removedInput schema / title
      Removed value: -"SessionClickParams"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only provide a title, so the description carries the full burden. It thoroughly discloses behavior: scrolls into view, fires DOM click, re-verifies element, returns clicked:false with reasons on failure, never silent no-op, may navigate, and session state persists. This is exceptionally transparent and goes beyond basic expectations.

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 a single dense paragraph but well-structured: it opens with the core action and source, then details pre-conditions, failure modes, side effects, and persistence. It is not overly verbose for the amount of critical information it conveys, though breaking it into bullets could improve readability. It earns its length by covering essential behavioral details.

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?

Despite lacking an output schema, the description explains return values (clicked:false, reason, covered_by, url, text_after), failure modes, navigation side effects, and session persistence. For a two-parameter tool, this is remarkably complete—an agent has everything needed to invoke it correctly and interpret outcomes.

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% with both parameters described (index from /state output, session_id). The description adds value by clarifying that index must come from the most recent session_state and re-list after navigation, plus explaining how the index is used (re-verification). This enriches the schema meaning beyond the basic 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 an interactive element'), the resource (element by index in a live browser session), and the source of the index (session_state output). It also distinguishes itself from sibling session_click_xy by specifying index-based clicking, making it easy to select the right tool.

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?

The description provides clear context: indexes come from the most recent session_state, and it advises re-listing after navigation. It implicitly differentiates from session_click_xy (coordinate-based) by emphasizing index-based selection, though it doesn't explicitly name the alternative. It covers when the tool may not work (page changed) and how to handle it, giving sufficient usage guidance.

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