Skip to main content
Glama

gesture-scroll

Scroll Chromium app content by sending mouse-wheel events at a normalized point, using fractional window deltas to bring off-screen elements or list items into view.

Instructions

Send mouse-wheel events at a point to scroll content in a Chromium app. The anchor x/y and the deltas are fractions of the window (not pixels); x/y match gesture-tap and describe. Use when content is below/above the fold (describe shows off-screen elements with zero height) or a list needs scrolling. Chromium only: on iOS/Android use gesture-swipe. Returns { scrolled: true, timestampMs }. Fails if the Chromium CDP session is not reachable for the given device.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "udid": "<udid>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "gesture-scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesAnchor x. The wheel events land here; put it over the element you want to scroll. Range: 0 to 1.
yYesAnchor y. Range: 0 to 1.
udidYesTarget Chromium device id from `list-devices` (chromium-cdp-<port>).
deltaXNoHorizontal scroll distance as a fraction of the window width. Positive reveals content to the right; negative scrolls back left.
deltaYNoVertical scroll distance as a fraction of the window height (0.5 = half a window). Positive scrolls down (reveals content below), like rolling a mouse wheel toward you; negative scrolls back up.
durationMsNoSpread the scroll over this many milliseconds in wheel-event steps (default 300) so scroll handlers fire progressively.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / deltaX / description
      Previous value: -"Horizontal scroll distance as a fraction of the window width (e.g. 0.5 = half a window). Positive scrolls content right (reveals content to the right)."New value: +"Horizontal scroll distance as a fraction of the window width. Positive reveals content to the right; negative scrolls back left."
    • changedInput schema / properties / deltaY / description
      Previous value: -"Vertical scroll distance as a fraction of the window height (e.g. 0.5 = half a window). Positive scrolls content down (reveals content below), like rolling a mouse wheel toward you."New value: +"Vertical scroll distance as a fraction of the window height (0.5 = half a window). Positive scrolls down (reveals content below), like rolling a mouse wheel toward you; negative scrolls back up."
    • changedInput schema / properties / x / description
      Previous value: -"Anchor x: normalized 0.0–1.0 (fraction of window width, not pixels). The wheel events land here — put it over the element you want to scroll."New value: +"Anchor x. The wheel events land here; put it over the element you want to scroll. Range: 0 to 1."
    • addedInput schema / properties / x / maximum
      Added value: +1
    • addedInput schema / properties / x / minimum
      Added value: +0
    • changedInput schema / properties / y / description
      Previous value: -"Anchor y: normalized 0.0–1.0 (fraction of window height, not pixels)."New value: +"Anchor y. Range: 0 to 1."
    • addedInput schema / properties / y / maximum
      Added value: +1
    • addedInput schema / properties / y / minimum
      Added value: +0
  2. First observedv0.15.0

TDQS

A4.7/5.0
Behavior4/5

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

No annotations are present, so the description carries the full burden, and it discloses the non-obvious coordinate model (fractions, not pixels), the return shape, and a concrete failure mode (CDP session unreachable). It does not cover side effects on scroll handlers beyond durationMs, nor whether the gesture can be interrupted, leaving a small gap.

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?

Front-loads the action and platform scope, then trigger conditions, then return and failure behavior. Four sentences with no filler; the only mild repetition is restating the fraction semantics that the schema also carries.

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

Completeness5/5

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

With no output schema and no annotations, the description supplies everything an agent needs: coordinate model, platform restriction, valid trigger conditions, return shape, and failure condition. Nothing essential about invoking it correctly is missing.

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 adds meaning beyond it by warning that x/y are window fractions rather than pixels and that they must match the coordinate convention used by gesture-tap and describe, which is a cross-tool consistency constraint the schema does not state.

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?

States a specific verb and resource ('Send mouse-wheel events at a point to scroll content in a Chromium app') and immediately scopes it to Chromium, which separates it from gesture-swipe and the other gesture-* siblings. An agent can tell what this does without opening the schema.

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?

Gives an explicit trigger ('content is below/above the fold (describe shows off-screen elements with zero height) or a list needs scrolling') and an explicit exclusion with the correct alternative ('Chromium only: on iOS/Android use gesture-swipe'). Both when-to-use and when-not-to-use are covered.

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