Skip to main content
Glama

safari_native_click

Performs a real WebKit click via the macOS accessibility tree so isTrusted-checking and bot-gated handlers accept it, while Safari stays in the background with no window raised or mouse moved.

Instructions

Real click performed by WebKit through the macOS accessibility tree — mousedown/mouseup/click arrive with isTrusted: true, so WAF/bot-gated and isTrusted-checking handlers accept it (G2, Cloudflare, Google editors). Runs in the background: Safari is never activated, no window is raised and the mouse does not move. Use when regular safari_click has no effect or is rejected. Use ref (from snapshot), selector, text, or x/y. When using ref, always take a FRESH safari_snapshot first. Needs an unlocked screen.

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_native_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoViewport X coordinate
yNoViewport Y 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
doubleClickNoDouble-click instead of single click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/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 it well: it discloses the trust semantics of the emitted events, that Safari runs in the background without raising a window or moving the physical mouse, and that an unlocked screen is required. It also names the targeting modes, which is behavior-shaping context an agent cannot infer from the schema.

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?

Four sentences, front-loaded with the differentiator (isTrusted real click), then side effects, then the decision rule, then mechanics and prerequisites. No filler and no restatement of the tool name.

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 an 8-param, zero-required click tool with no output schema, the definition covers mechanism, side effects, targeting, and prerequisites. The remaining gap is failure semantics — it does not say what happens when the target is not found or the click is still rejected, which an agent would want before retrying.

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; the description earns an extra point by presenting ref/selector/text/x-y as interchangeable targeting alternatives, implying an either-or choice the schema does not state. It does not mention doubleClick or explain how conflicts between multiple targets are resolved, so it is not exhaustive.

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?

Names a specific verb+mechanism: a real click executed by WebKit via the macOS accessibility tree, with isTrusted:true events. It directly distinguishes itself from the sibling safari_click by explaining why this variant exists (WAF/bot-gated, isTrusted-checking handlers).

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?

Explicit trigger condition: "Use when regular safari_click has no effect or is rejected." Adds two prerequisites: take a FRESH safari_snapshot before using a ref, and the screen must be unlocked. This is when-to-use, when-to-prefer-alternative, and preconditions in three sentences.

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