Skip to main content
Glama

scroll

Navigate app content in any direction or to top/bottom edges, repeating until a target selector becomes visible. Provides movement feedback and refuses when no progress is possible.

Instructions

Scroll in a direction, or toward the top/bottom edge of scrollable content. Set until to a selector to reach an off-screen target in one command rather than a scroll-and-check loop. The optional amount is the finger-path fraction of the viewport axis, honored up to 0.8 of it; directional scrolls reduce release momentum, while app scroll physics determine the final content offset. A visible keyboard shortens the swiped band instead of being dismissed; when too little is left, the command refuses with scroll_keyboard_occludes_surface. A directional scroll also reports the movement it observed as movement: moved, at-edge, unchanged, or unobserved when the two reads could not back a claim either way; an unchanged surface inside a container that still hides content in that direction refuses with scroll_no_progress rather than repeating the requested distance. The movement field is absent where a tier verifies per pass (top/bottom, until), where the runtime cannot read a screen, or where a settle observation or a replay already owns that observation. Times out after 90s; a caller-supplied budget extends it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidNoApple device or simulator UDID; the selector that pins one device when several share a name.
debugNoEnable debug diagnostics.
runIdNoLease run identifier.
untilNoRepeat scroll passes until this selector is visible on screen, then stop. Not valid with the top/bottom edge directions, which carry their own stop condition.
amountNoPlatform scroll amount.
deviceNoDevice name selector (a UDID belongs in udid, a serial in serial).
pixelsNoPixel scroll amount.
serialNoAndroid, HarmonyOS, or Vega VVD serial selector.
settleNoAfter the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.
targetNoAlias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.
tenantNoRemote tenant identifier.
leaseIdNoExisting lease identifier.
sessionNoAgent-device session name.
noRecordNoDo not record this action.
platformNoPlatform selector used to resolve a device.
directionYes
timeoutMsNoSettle: wait deadline in milliseconds (default 10000).
durationMsNoScroll duration in milliseconds when the backend supports pacing.
includeCostNoInclude per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.
deviceTargetNoDevice target form. Maps to the CLI --target flag.
responseLevelNoResponse verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.
settleQuietMsNoSettle: quiet window in milliseconds (default 500).
mcpOutputFormatNoMCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.
androidDeviceAllowlistNoAndroid serial allowlist used for device resolution.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgeNo
untilNoUntil scrolls only: the selector the passes stopped on.
amountNo
passesNoEdge and until scrolls only: how many scroll-and-check passes ran.
pixelsNo
settleNo
messageNo
movementNoDirectional scrolls only: what the owner observed after its gesture. `moved` means the content inside the scroller the swipe ran in differs from the tree the session stored immediately before the gesture; `at-edge` and `unchanged` mean it did not change, with no hidden content left to reveal and with no end-of-content signal to read, respectively; `unobserved` means the pair could not back a claim in either direction — nothing comparable was available (no stored tree, a capture from another lineage, a surface that never came to rest), or every difference sits outside the scroller that was swiped, which a changing status bar does on Android — so the reported distance rests on the gesture plan alone. The field is absent — which is never a claim that nothing moved — on the tiers that verify per pass (`scroll top`/`bottom`, `--until`), on a runtime bound without a capture, on a platform whose scroll dispatches no swipe (the Linux wheel), and where the caller already owns that observation (`--settle`, or a replay with `postGestureStabilization: false`).
directionYes
durationMsNo
keyboardMinYNoWhere the keyboard began, in the same unit as the gesture coordinates. Clipped scrolls only.
keyboardAvoidedNoPresent only when an on-screen keyboard forced the swipe into the band above it; the reported pixels were planned against the shorter referenceHeight.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.21.13
    • addedOutput schema / properties / movement
      Added value: +{
      +  "description": "Directional scrolls only: what the owner observed after its gesture. `moved` means the content inside the scroller the swipe ran in differs from the tree the session stored immediately before the gesture; `at-edge` and `unchanged` mean it did not change, with no hidden content left to reveal and with no end-of-content signal to read, respectively; `unobserved` means the pair could not back a claim in either direction — nothing comparable was available (no stored tree, a capture from another lineage, a surface that never came to rest), or every difference sits outside the scroller that was swiped, which a changing status bar does on Android — so the reported distance rests on the gesture plan alone. The field is absent — which is never a claim that nothing moved — on the tiers that verify per pass (`scroll top`/`bottom`, `--until`), on a runtime bound without a capture, on a platform whose scroll dispatches no swipe (the Linux wheel), and where the caller already owns that observation (`--settle`, or a replay with `postGestureStabilization: false`).",
      +  "enum": [
      +    "moved",
      +    "at-edge",
      +    "unchanged",
      +    "unobserved"
      +  ],
      +  "type": "string"
      +}
  2. Changed6 schema fields changedv0.21.2
    • addedInput schema / properties / until
      Added value: +{
      +  "description": "Repeat scroll passes until this selector is visible on screen, then stop. Not valid with the top/bottom edge directions, which carry their own stop condition.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / keyboardAvoided
      Added value: +{
      +  "description": "Present only when an on-screen keyboard forced the swipe into the band above it; the reported pixels were planned against the shorter referenceHeight.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / keyboardMinY
      Added value: +{
      +  "description": "Where the keyboard began, in the same unit as the gesture coordinates. Clipped scrolls only.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / passes / description
      Previous value: -"Edge scrolls only: how many scroll-and-check passes ran."New value: +"Edge and until scrolls only: how many scroll-and-check passes ran."
    • addedOutput schema / properties / settle / properties / surfaceChange
      Added value: +{
      +  "description": "Present when an in-place system surface (web sign-in or Apple Pay sheet) was presented over the app, or left it.",
      +  "properties": {
      +    "disclosure": {
      +      "description": "Agent-facing sentence explaining the surface transition.",
      +      "type": "string"
      +    },
      +    "from": {
      +      "description": "Surface the pre-action baseline described: a host bundle id, or app.",
      +      "type": "string"
      +    },
      +    "to": {
      +      "description": "Surface the post-action capture describes: a host bundle id, or app.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "to",
      +    "disclosure"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / until
      Added value: +{
      +  "description": "Until scrolls only: the selector the passes stopped on.",
      +  "type": "string"
      +}
  3. Changed3 schema fields changedv0.21.0
    • changedInput schema / properties / device / description
      Previous value: -"Device name selector."New value: +"Device name selector (a UDID belongs in udid, a serial in serial)."
    • changedInput schema / properties / serial / description
      Previous value: -"Android device or Vega VVD serial selector."New value: +"Android, HarmonyOS, or Vega VVD serial selector."
    • changedInput schema / properties / udid / description
      Previous value: -"iOS device UDID selector."New value: +"Apple device or simulator UDID; the selector that pins one device when several share a name."
  4. Changed9 schema fields changedv0.20.10
    • removedInput schema / properties / cwd
      Removed value: -{
      -  "description": "Working directory for command execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonAuthToken
      Removed value: -{
      -  "description": "Remote daemon auth token.",
      -  "type": "string"
      -}
    • removedInput schema / properties / daemonBaseUrl
      Removed value: -{
      -  "description": "Remote daemon base URL.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosSimulatorDeviceSet
      Removed value: -{
      -  "description": "iOS simulator device-set path used for device resolution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestDerivedDataPath
      Removed value: -{
      -  "description": "Derived data path for external iOS XCTest runner execution.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestEnvDir
      Removed value: -{
      -  "description": "Writable directory for iOS XCTest runner env overlays.",
      -  "type": "string"
      -}
    • removedInput schema / properties / iosXctestrunFile
      Removed value: -{
      -  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      -  "type": "string"
      -}
    • removedInput schema / properties / stateDir
      Removed value: -{
      -  "description": "Agent-device state directory.",
      -  "type": "string"
      -}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "amount": {
      +      "type": "number"
      +    },
      +    "direction": {
      +      "enum": [
      +        "up",
      +        "down",
      +        "left",
      +        "right"
      +      ],
      +      "type": "string"
      +    },
      +    "durationMs": {
      +      "type": "number"
      +    },
      +    "edge": {
      +      "enum": [
      +        "top",
      +        "bottom"
      +      ],
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "passes": {
      +      "description": "Edge scrolls only: how many scroll-and-check passes ran.",
      +      "type": "number"
      +    },
      +    "pixels": {
      +      "type": "number"
      +    },
      +    "settle": {
      +      "properties": {
      +        "captures": {
      +          "type": "number"
      +        },
      +        "diff": {
      +          "description": "Settled diff vs the pre-action tree (changed lines only).",
      +          "properties": {
      +            "lines": {
      +              "items": {
      +                "properties": {
      +                  "kind": {
      +                    "enum": [
      +                      "added",
      +                      "removed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "ref": {
      +                    "description": "Plain ref body (e12) for added lines.",
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "summary": {
      +              "properties": {
      +                "additions": {
      +                  "type": "number"
      +                },
      +                "removals": {
      +                  "type": "number"
      +                },
      +                "unchanged": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "additions",
      +                "removals",
      +                "unchanged"
      +              ],
      +              "type": "object"
      +            },
      +            "truncated": {
      +              "description": "Lines were capped to the response bound.",
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "summary",
      +            "lines"
      +          ],
      +          "type": "object"
      +        },
      +        "hint": {
      +          "type": "string"
      +        },
      +        "quietMs": {
      +          "type": "number"
      +        },
      +        "refs": {
      +          "items": {
      +            "properties": {
      +              "ref": {
      +                "description": "Plain ref body (e12) minted from the stored settled tree.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "ref"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "refsGeneration": {
      +          "description": "Snapshot generation of the stored settled tree; refs on added diff lines were minted from it.",
      +          "type": "number"
      +        },
      +        "settled": {
      +          "description": "Whether the UI held the quiet window before the deadline. false is advisory, not failure.",
      +          "type": "boolean"
      +        },
      +        "tail": {
      +          "description": "Unchanged interactive refs tail: still-present, actionable elements from the settled tree, attached only when diff carries zero added-line refs (a modal-dismiss/toast-only diff).",
      +          "items": {
      +            "properties": {
      +              "label": {
      +                "type": "string"
      +              },
      +              "ref": {
      +                "description": "Plain ref body (e12) minted from the stored settled tree.",
      +                "type": "string"
      +              },
      +              "role": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "ref",
      +              "role"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "tailTruncated": {
      +          "description": "Present (true) when tail candidates exceeded the response cap.",
      +          "type": "boolean"
      +        },
      +        "timeoutMs": {
      +          "type": "number"
      +        },
      +        "waitedMs": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "settled",
      +        "waitedMs",
      +        "captures",
      +        "quietMs",
      +        "timeoutMs"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "direction"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changedv0.20.9
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "vega",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "harmonyos",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
  6. Changed3 schema fields changedv0.20.6
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response. Best-effort; never fails the action.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settleQuietMs
      Added value: +{
      +  "description": "Settle: quiet window in milliseconds (default 500).",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / timeoutMs
      Added value: +{
      +  "description": "Settle: wait deadline in milliseconds (default 10000).",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  7. Changed3 schema fields changedv0.20.2
    • addedInput schema / properties / noRecord
      Added value: +{
      +  "description": "Do not record this action.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "apple",
      -  "android",
      -  "linux",
      -  "web",
      -  "ios",
      -  "macos"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "vega",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • changedInput schema / properties / serial / description
      Previous value: -"Android serial selector."New value: +"Android device or Vega VVD serial selector."
  8. Changed3 schema fields changedv0.17.11
    • addedInput schema / properties / includeCost
      Added value: +{
      +  "description": "Include per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "web",
      -  "apple"
      -]New value: +[
      +  "apple",
      +  "android",
      +  "linux",
      +  "web",
      +  "ios",
      +  "macos"
      +]
    • addedInput schema / properties / responseLevel
      Added value: +{
      +  "description": "Response verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.",
      +  "enum": [
      +    "digest",
      +    "default",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  9. Changed1 schema field changedv0.17.9
    • addedInput schema / properties / durationMs
      Added value: +{
      +  "description": "Scroll duration in milliseconds when the backend supports pacing.",
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  10. Changed1 schema field changedv0.17.7
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "macos",
      -  "android",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "web",
      +  "apple"
      +]
  11. Changed5 schema fields changedv0.17.6
    • addedInput schema / properties / iosXctestDerivedDataPath
      Added value: +{
      +  "description": "Derived data path for external iOS XCTest runner execution.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestEnvDir
      Added value: +{
      +  "description": "Writable directory for iOS XCTest runner env overlays.",
      +  "type": "string"
      +}
    • addedInput schema / properties / iosXctestrunFile
      Added value: +{
      +  "description": "Externally built iOS XCTest runner .xctestrun artifact path.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mcpOutputFormat
      Added value: +{
      +  "description": "MCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.",
      +  "enum": [
      +    "optimized",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "ios",
      -  "android",
      -  "macos",
      -  "linux",
      -  "apple"
      -]New value: +[
      +  "ios",
      +  "macos",
      +  "android",
      +  "linux",
      +  "apple"
      +]
  12. First observedv0.16.9

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it excels. It details the movement reporting (moved, at-edge, unchanged, unobserved), the specific refusal codes (scroll_keyboard_occludes_surface, scroll_no_progress), the conditions under which the movement field is absent, the effect of amount (finger-path fraction up to 0.8), and the timeout behavior. This is exemplary transparency for a complex interaction tool.

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?

The description is dense but every sentence earns its place. It is front-loaded with the core purpose, then progressively covers usage, edge cases, reporting, and timeout. There is no fluff or repetition; each clause introduces a distinct behavioral fact. The structure is logical and scannable, making it easy for an agent to extract the key constraints.

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?

Given the tool's complexity (24 parameters, multiple directions, until logic, movement reporting, and refusal conditions), the description is remarkably complete. It covers the main behavior, the 'until' loop, the amount semantics, keyboard interaction, movement field presence/absence, and timeout. The output schema exists separately, so return-value details are not required here. An agent has all the information needed to call this tool correctly and anticipate its failure modes.

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 description coverage is 96%, so the schema already documents most parameters. The description adds genuine value beyond the schema by explaining the semantics of 'amount' as a finger-path fraction with a 0.8 cap (schema only says 'Platform scroll amount') and by clarifying the interaction between keyboard visibility and the swipe band. It also explains the movement field which is not in the input schema. This exceeds the baseline for high coverage, so a 4 is warranted.

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?

The description opens with a precise verb and resource: 'Scroll in a direction, or toward the top/bottom edge of scrollable content.' It immediately distinguishes the tool from siblings like swipe or gesture by focusing on scrollable content and the top/bottom edge concept. The 'until' clause further clarifies a specific use case (reaching an off-screen target) that sets it apart from a naive scroll-and-check loop.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear guidance on when to use 'until' ('to reach an off-screen target in one command rather than a scroll-and-check loop') and notes behavioral caveats like keyboard occlusion and the refusal conditions. It does not explicitly name alternative tools (e.g., swipe, gesture) or state when not to use scroll, but the context is strong enough for an agent to infer appropriate usage. The absence of explicit exclusions keeps it from a 5.

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