click_mark
Activate on-screen elements by their mark number from a screenshot, using JavaScript for web content and accessibility for native controls — no coordinate guessing.
Instructions
Activate an actionable element by the mark NUMBER shown in the most recent screenshot(marks=true) — the reliable way to click without guessing coordinates. Always background, no cursor movement: web-page content in a scriptable browser (Safari, Chrome, Arc, Edge, Brave, …) is clicked through the page's OWN JavaScript engine (an Accessibility press is a silent no-op on web content), native controls through the Accessibility tree; if neither applies it falls back to a click at the element's center. Numbers go stale when the UI changes, so take a fresh screenshot(marks=true) right before calling this. If the number is unknown, re-shoot with marks=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The mark number [N] of the element to activate, as listed by the most recent `screenshot(marks=true)`. | |
| background | No | Deliver the coordinate-click fallback in the background to the captured window's process (native apps only). The AX action is always background; this only affects the fallback. Default false = foreground. |