safari_scroll_to
Scroll to specific coordinates on a webpage using Safari automation. Set X and Y positions to navigate content precisely.
Instructions
Scroll to a specific position on the page
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (default: 0) | |
| y | No | Y position (default: 0) |
Implementation Reference
- mcp-helpers.js:246-252 (handler)Logic for scrolling to a specific coordinate when finding an element by reference (mcpFindRef). This is a core part of the scroll functionality implemented in the helpers.
if (m.cx !== undefined && m.cy !== undefined) { try { window.scrollTo(window.scrollX, Math.max(0, m.cy - window.innerHeight / 2)); } catch (e) {} el = window.mcpElementFromPoint(m.cx - window.scrollX, m.cy - window.scrollY); if (el) return window.mcpPickActionable(el) || el; }