Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Scroll an element into view (reliable — not simulated)

scroll_to_element

Scroll a page until a target element is visible using the accessibility API's scroll-into-view action, reliably reaching below-the-fold content when simulated wheel or keyboard scrolling is ignored.

Instructions

Scroll the page so an element (found by text/role, or a ref from read_page) is visible, using the accessibility API's own scroll-into-view action rather than simulating wheel/keyboard scrolling. This is the reliable way to reach below-the-fold content — some pages silently ignore simulated wheel/Page_Down events (e.g. pinned image galleries) but this always works. Also useful to bring a nearby landmark into view before using screenshot on content that itself has no accessible representation (e.g. a canvas-based size picker) — scroll to a labeled heading near it, then screenshot.

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": "scroll_to_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
roleNo
textNo
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the underlying mechanism (accessibility API scroll-into-view action), the reliability guarantee versus simulated input, and the failure mode it avoids. It stops short of stating what happens if the element is not found, whether it waits, or whether it scrolls nested containers.

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?

Core purpose and the reliability claim are front-loaded in the first sentence, with the screenshot workaround as a clearly secondary follow-up. Slightly repetitive ("the reliable way ... this always works") but every clause adds usable information.

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 a four-parameter UI navigation tool with no output schema and no annotations, the description supplies the mechanism, reliability rationale, and two concrete workflows, which is enough to call it correctly. Gaps remain around return behavior after scrolling and how the identifier parameters combine, which matters given the 0% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it partially does — it explains that an element can be identified by text, by role, or by a ref from read_page. It says nothing about window_address, that all four parameters are optional, which identifier takes precedence when several are supplied, or what happens with no target.

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 and resource ("Scroll the page so an element ... is visible") and immediately clarifies the lookup mechanism (text/role, or a ref from read_page). It also distinguishes itself from the sibling scroll tool by contrasting the accessibility API's native action against simulated wheel/keyboard scrolling.

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?

Explicitly states when this is the right choice — below-the-fold content, pages that ignore simulated wheel/Page_Down events like pinned image galleries — and gives a concrete second use case (scrolling to a labeled heading before screenshotting a canvas-based widget). The alternative path for non-accessible content is named directly.

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