Skip to main content
Glama

safari_click

Clicks elements in Safari by reference, CSS selector, visible text, or coordinates, including React and virtual DOM apps, without moving the user's mouse.

Instructions

Click element. Use ref (from snapshot), selector, text, or x/y. Works on React/Airtable/virtual DOM apps via full PointerEvent+MouseEvent sequence + React Fiber fallback. Pure JS — never touches user's mouse. When using ref, always take a FRESH safari_snapshot first — refs expire after each new snapshot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "safari_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX coordinate
yNoY coordinate
refNoRef ID from safari_snapshot (e.g. '0_5')
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
textNoVisible text to find and click
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
selectorNoCSS selector

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it discloses that clicks are synthesized via a full PointerEvent+MouseEvent sequence with a React Fiber fallback, and that this is pure JS that never moves the user's real cursor. The ref-expiry lifecycle rule is a genuinely useful behavioral constraint. What is missing is failure behavior (element not found, off-screen, needs scrolling) and whether it waits for readiness.

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?

Four short sentences, front-loaded with the action, then targeting, then mechanism, then the ref-freshness caveat. Every sentence does work, though the "React/Airtable/virtual DOM apps" name list and "PointerEvent+MouseEvent sequence + React Fiber fallback" are dense jargon that could be trimmed.

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

Completeness3/5

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

For a side-effecting interaction tool with zero annotations and no output schema, the description covers mechanism and safety-relevant behavior (synthetic events, no real cursor movement) but omits outcome reporting: what happens if the target is missing, whether it scrolls into view, and how success is signaled. Adequate but with clear gaps for a mutation-style 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%, so the baseline is 3, but the description adds meaning beyond the schema by tying ref to safari_snapshot provenance and stating that refs expire after each new snapshot — a temporal constraint the schema does not express. It also frames the targeting parameters as alternatives ("use ref, selector, text, or x/y"), which the schema lists without indicating mutual exclusivity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Click element") and immediately names the four targeting modes, so the agent knows exactly what operation this performs. It does not differentiate itself from close siblings such as safari_native_click, safari_double_click, or safari_click_and_wait, so sibling separation is left implicit.

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?

Gives concrete when-to-use guidance for each targeting strategy (ref from snapshot, selector, visible text, x/y) and a mandatory prerequisite: take a fresh safari_snapshot first because refs expire after each new snapshot. It stops short of saying when to prefer this over safari_native_click or safari_click_and_wait, so exclusion guidance is absent.

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

Deploy Server

Other Tools