Skip to main content
Glama

scroll

Move through windows or pages using wheel input, element targeting, smart fallback, full-page capture, or OCR text extraction to reach and read content beyond the viewport.

Instructions

Purpose: Scroll a window or page. 5 strategies via action: 'raw' (wheel notches), 'to_element' (UIA name/automationId or CSS selector), 'smart' (auto-detect target with multi-strategy fallback), 'capture' (full-page stitched image), 'read' (scroll+OCR+dedupe → stitched text). Details: action='raw': send raw mouse-wheel notches at (x,y) or current cursor; the window is brought forward only with x/y. One amount unit is one wheel notch, and ≈10 notches move one screenful (see amount). action='to_element': scroll a named element into viewport (UIA or CDP). action='smart': handles nested scroll layers, virtualised lists, sticky-header occlusion. action='capture': stitches full-page images (caps at ~700KB raw); sizeReduced=true means downscaled. action='read': scrolls page-by-page, OCRs each viewport, deduplicates overlapping lines, returns stitched text; language auto-detected from OS locale if omitted. Prefer: Use action='to_element' or action='smart' for click target out-of-viewport recovery (entity_outside_viewport) — scrolling only helps when the target scrolled out of its own window; if desktop_act reported origin_window_not_visible, restore the window with focus_window and re-run desktop_discover instead. Use action='capture' for reading long pages as images. Use action='read' for extracting text from long native-app documents (PDF readers, text editors, terminals) where copy-paste is unavailable. For simple scroll without target, use action='raw'. Caveats: action='capture' returns stitched image — pixels do NOT match screen coords when sizeReduced=true, use for reading only, not mouse_click. action='smart' CDP path requires browser_open. action='to_element' native path requires element to implement UIA ScrollItemPattern. action='read' uses OCR (imperfect accuracy) and requires the window to be visible; for browser pages prefer browser_eval or browser_overview for accurate DOM text. action='capture' needs the window in front throughout: code:'ForegroundRestricted' if it cannot get it (nothing sent) or loses it before the first frame (context.lostPartWay: at most Ctrl+Home reached the target), code:'WindowOnOtherDesktop' off this desktop, code:'WindowBlockedByDialog' when its dialog disables it, stoppedReason:'foreground_lost' (frames kept) after that. action='read' needs it only for its key fallback: stoppedReason:'foreground_refused' (pages kept). action='raw' typed errors: code:'ScrollNotDelivered' on silent drop (overlay / non-scrollable / UIPI low-IL), and before sending when a Chrome/Edge page shows nowhere (focus_window({hwnd})); already-at-boundary is success via pre/post-percent disambiguation. hints.verifyDelivery.{channel,reason} per ADR-018 §2.6 — channel is the transport used ('uia'/'cdp'/'postmessage'/'wheel_send_input'); reason='pixel_delta_observed' = pixel evidence only (weak). reason='page_handled_wheel'/'hit_path_unobservable' (cdp) = unverifiable: the page cancelled the wheel / nothing scrollable seen at (x,y). action='smart' typed errors: code:'OverflowHiddenAncestor' (retry with expandHidden:true), code:'VirtualScrollExhausted' (provide virtualIndex); image road: code:'WindowOnOtherDesktop' / 'WindowBlockedByDialog'. Examples: scroll({action:'raw', direction:'down', amount:5, windowTitle:'Chrome'}) scroll({action:'to_element', name:'OK', windowTitle:'Dialog'}) scroll({action:'smart', target:'#create-release-btn'}) scroll({action:'capture', windowTitle:'Chrome', maxScrolls:10}) scroll({action:'read', windowTitle:'Acrobat', maxPages:15}) // OCR + dedupe long PDF

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": {
      "action": "<action>"
    },
    "name": "scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX coordinate to scroll at (moves cursor there first)
yNoY coordinate to scroll at
hintNoScroll direction hint for binary-search (image path). Seeds lo/hi bounds to reduce attempts.
hwndNoDirect window handle ID (takes precedence over windowTitle).
nameNoPartial name/label of the element (UIA name match). Use for native app elements. At least one of name or selector must be provided.
portNo'to_element': CDP port for Chrome path (default 9222) 'smart': CDP port (default 9222)
blockNoVertical alignment after scroll — start/center/end/nearest (Chrome path only, default: center)center
speedNoCursor movement speed in px/sec (0=teleport, omit=default)
tabIdNo'to_element': Tab ID (Chrome path only). Omit for first page tab. 'smart': CDP tab ID (Chrome path only). Omit for first page tab.
actionYesAction selector — one of: raw, to_element, smart, capture, read. Per-action required fields are enforced at call time (see the tool description); this flat schema lists every action's fields as optional.
amountNoNumber of scroll notches (default 3, max 1000). One notch = one physical wheel detent on every dispatch path. Count screenfuls, not lines: ≈10 notches move one screenful, so amount:3 (default) is about a third of a screen. UIA-capable apps (Notepad, Explorer, WPF) step ≈1/10 of the window's visible area per notch; browsers and WebView-based apps (Chrome, Electron, Tauri) move ≈100 px per notch. Exact distance depends on the app, the window size and the OS wheel-speed setting. The 1000-notch ceiling exists because each notch is dispatched as real wheel input; to reach a specific place in a long document use action='to_element' or action='smart' instead of a huge amount.
homingNoApply window-movement homing correction to (x,y) before scrolling. Default true.
inlineNoVertical alignment after scroll (CDP path). Default: center.center
targetNoCSS selector (Chrome/Edge) or partial UIA name (native apps). For CDP path, must be a valid CSS selector (starts with #, ., tag, or [ ). For UIA path, a partial name match against element Name property.
includeNoOptional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).
languageNoOCR language code (e.g. 'ja', 'en', 'zh'). Omit to use the Windows locale's language. Pass the page's language when it differs. Windows reads with an installed OCR pack only: when the one asked for has none, the reply's language names the one that read, with a warning.
maxDepthNoMax number of ancestor scroll containers to walk. Default 3.
maxPagesNoMaximum number of scroll steps / OCR pages (default 20, max 50).
maxWidthNoMax size of the short edge of the final image (default 1280). For 'down': caps the image width; height is unconstrained. For 'right': caps the image height; width is unconstrained.
selectorNoCSS selector for the element (Chrome/Edge only). At least one of name or selector must be provided.
strategyNoauto (default): try CDP → UIA → image in order. cdp: Chrome/Edge only. uia: native Windows UIA. image: image + Win32 binary-search.auto
directionNo'raw': Scroll direction 'smart': Scroll direction. into-view: scroll until target element is visible (default). Other values scroll unconditionally. 'capture': Scroll direction: 'down' (vertical, uses Page Down key) or 'right' (horizontal, uses mouse scroll). Default 'down'.
scrollKeyNoKey sent to scroll one page. PageDown (default): full-page scroll for most apps. Space: web/PDF readers. ArrowDown: line-by-line slow scroll.PageDown
maxScrollsNoMaximum scroll iterations before stopping (default 10, max 30)
retryCountNoMax scroll attempts (image path binary-search). Default 3, cap 4.
windowTitleNo'raw': Partial window title. With x/y (and homing on), the server brings this window forward before moving the cursor; without x/y it is not focused, and the wheel is sent to it. 'to_element': Partial window title (required for native path when name is used) 'smart': Partial window title. Required for UIA and image paths. For CDP path, optional. 'capture': Partial title of the window to capture (case-insensitive match) 'read': Partial window title to focus and OCR (case-insensitive match).
expandHiddenNoTemporarily set overflow:hidden ancestors to overflow:auto to unlock scroll. Mutates live CSS.
virtualIndexNoTarget row index in a virtualised list (0-based). Enables direct TanStack/data-index seeking.
virtualTotalNoTotal row count in a virtualised list. Required when virtualIndex is set.
scrollDelayMsNo'capture': Milliseconds to wait after each scroll for rendering to settle (default 400). Increase for slow/animated pages. 'read': Milliseconds to wait after each scroll for rendering to settle (default 400).
verifyWithHashNoVerify scroll effectiveness via perceptual hash comparison. Automatically enabled for image path.
stopWhenNoChangeNoStop automatically when two consecutive pages yield no new lines after deduplication (page-end detection). Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.3
    • changedInput schema / properties / windowTitle / description
      Previous value: -"'raw': Partial window title. When provided, the server focuses this window first.\n'to_element': Partial window title (required for native path when name is used)\n'smart': Partial window title. Required for UIA and image paths. For CDP path, optional.\n'capture': Partial title of the window to capture (case-insensitive match)\n'read': Partial window title to focus and OCR (case-insensitive match)."New value: +"'raw': Partial window title. With x/y (and homing on), the server brings this window forward before moving the cursor; without x/y it is not focused, and the wheel is sent to it.\n'to_element': Partial window title (required for native path when name is used)\n'smart': Partial window title. Required for UIA and image paths. For CDP path, optional.\n'capture': Partial title of the window to capture (case-insensitive match)\n'read': Partial window title to focus and OCR (case-insensitive match)."
  2. Changed1 schema field changedv2.4.1
    • changedInput schema / properties / language / description
      Previous value: -"OCR language code (e.g. 'ja', 'en', 'zh'). Omit to auto-detect from Windows system locale via Intl.DateTimeFormat().resolvedOptions().locale. Default: auto."New value: +"OCR language code (e.g. 'ja', 'en', 'zh'). Omit to use the Windows locale's language. Pass the page's language when it differs. Windows reads with an installed OCR pack only: when the one asked for has none, the reply's language names the one that read, with a warning."
  3. Changed11 schema fields changedv2.3.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / direction / description
      Previous value: -"Scroll direction"New value: +"'raw': Scroll direction\n'smart': Scroll direction. into-view: scroll until target element is visible (default). Other values scroll unconditionally.\n'capture': Scroll direction: 'down' (vertical, uses Page Down key) or 'right' (horizontal, uses mouse scroll). Default 'down'."
    • addedInput schema / properties / maxWidth / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / maxWidth / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / port / description
      Previous value: -"CDP port for Chrome path (default 9222)"New value: +"'to_element': CDP port for Chrome path (default 9222)\n'smart': CDP port (default 9222)"
    • changedInput schema / properties / scrollDelayMs / description
      Previous value: -"Milliseconds to wait after each scroll for rendering to settle (default 400). Increase for slow/animated pages."New value: +"'capture': Milliseconds to wait after each scroll for rendering to settle (default 400). Increase for slow/animated pages.\n'read': Milliseconds to wait after each scroll for rendering to settle (default 400)."
    • changedInput schema / properties / tabId / description
      Previous value: -"Tab ID (Chrome path only). Omit for first page tab."New value: +"'to_element': Tab ID (Chrome path only). Omit for first page tab.\n'smart': CDP tab ID (Chrome path only). Omit for first page tab."
    • addedInput schema / properties / virtualIndex / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / virtualTotal / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / windowTitle / description
      Previous value: -"Partial window title. When provided, the server focuses this window first."New value: +"'raw': Partial window title. When provided, the server focuses this window first.\n'to_element': Partial window title (required for native path when name is used)\n'smart': Partial window title. Required for UIA and image paths. For CDP path, optional.\n'capture': Partial title of the window to capture (case-insensitive match)\n'read': Partial window title to focus and OCR (case-insensitive match)."
  4. Changed4 schema fields changedv2.0.0
    • changedInput schema / properties / amount / description
      Previous value: -"Number of scroll notches (default 3). UIA-capable apps (Notepad, Explorer, WPF — Tier 1): empirically ≈1 text line per notch; amount:3 (default) ≈ 3 lines (small nudge), amount:10 ≈ 10 lines (~½ visible area). Legacy apps (SendInput path): each amount unit sends 3 wheel ticks; at Windows default 3 lines/tick that is ≈9 text lines per unit — distance varies by app/OS wheel-speed settings."New value: +"Number of scroll notches (default 3, max 1000). One notch = one physical wheel detent on every dispatch path. Count screenfuls, not lines: ≈10 notches move one screenful, so amount:3 (default) is about a third of a screen. UIA-capable apps (Notepad, Explorer, WPF) step ≈1/10 of the window's visible area per notch; browsers and WebView-based apps (Chrome, Electron, Tauri) move ≈100 px per notch. Exact distance depends on the app, the window size and the OS wheel-speed setting. The 1000-notch ceiling exists because each notch is dispatched as real wheel input; to reach a specific place in a long document use action='to_element' or action='smart' instead of a huge amount."
    • addedInput schema / properties / amount / maximum
      Added value: +1000
    • addedInput schema / properties / amount / minimum
      Added value: +1
    • addedInput schema / properties / target / minLength
      Added value: +1
  5. Addedv1.9.2
  6. Removedv1.8.0
  7. Addedv1.6.0
  8. Removedv1.5.1
  9. Addedv1.5.0
  10. Removedv1.4.3
  11. Addedv1.4.2
  12. Removedv1.4.0
  13. Changed1 schema field changedv1.2.1
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "raw"
      -      },
      -      "amount": {
      -        "default": 3,
      -        "description": "Number of scroll steps (default 3)",
      -        "type": "integer"
      -      },
      -      "direction": {
      -        "description": "Scroll direction",
      -        "enum": [
      -          "up",
      -          "down",
      -          "left",
      -          "right"
      -        ],
      -        "type": "string"
      -      },
      -      "homing": {
      -        "default": true,
      -        "description": "Apply window-movement homing correction to (x,y) before scrolling. Default true."
      -      },
      -      "hwnd": {
      -        "description": "Direct window handle ID (takes precedence over windowTitle).",
      -        "type": "string"
      -      },
      -      "speed": {
      -        "description": "Cursor movement speed in px/sec (0=teleport, omit=default)",
      -        "type": "number"
      -      },
      -      "windowTitle": {
      -        "description": "Partial window title. When provided, the server focuses this window first.",
      -        "type": "string"
      -      },
      -      "x": {
      -        "description": "X coordinate to scroll at (moves cursor there first)",
      -        "type": "number"
      -      },
      -      "y": {
      -        "description": "Y coordinate to scroll at",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "direction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "to_element"
      -      },
      -      "block": {
      -        "default": "center",
      -        "description": "Vertical alignment after scroll — start/center/end/nearest (Chrome path only, default: center)",
      -        "enum": [
      -          "start",
      -          "center",
      -          "end",
      -          "nearest"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Partial name/label of the element (UIA name match). Use for native app elements. At least one of name or selector must be provided.",
      -        "type": "string"
      -      },
      -      "port": {
      -        "default": 9222,
      -        "description": "CDP port for Chrome path (default 9222)",
      -        "maximum": 65535,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "selector": {
      -        "description": "CSS selector for the element (Chrome/Edge only). At least one of name or selector must be provided.",
      -        "type": "string"
      -      },
      -      "tabId": {
      -        "description": "Tab ID (Chrome path only). Omit for first page tab.",
      -        "type": "string"
      -      },
      -      "windowTitle": {
      -        "description": "Partial window title (required for native path when name is used)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "smart"
      -      },
      -      "direction": {
      -        "default": "into-view",
      -        "description": "Scroll direction. into-view: scroll until target element is visible (default). Other values scroll unconditionally.",
      -        "enum": [
      -          "into-view",
      -          "up",
      -          "down",
      -          "left",
      -          "right"
      -        ],
      -        "type": "string"
      -      },
      -      "expandHidden": {
      -        "default": false,
      -        "description": "Temporarily set overflow:hidden ancestors to overflow:auto to unlock scroll. Mutates live CSS.",
      -        "type": "boolean"
      -      },
      -      "hint": {
      -        "description": "Scroll direction hint for binary-search (image path). Seeds lo/hi bounds to reduce attempts.",
      -        "enum": [
      -          "above",
      -          "below",
      -          "left",
      -          "right"
      -        ],
      -        "type": "string"
      -      },
      -      "inline": {
      -        "default": "center",
      -        "description": "Vertical alignment after scroll (CDP path). Default: center.",
      -        "enum": [
      -          "start",
      -          "center",
      -          "end",
      -          "nearest"
      -        ],
      -        "type": "string"
      -      },
      -      "maxDepth": {
      -        "default": 3,
      -        "description": "Max number of ancestor scroll containers to walk. Default 3.",
      -        "maximum": 10,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "port": {
      -        "default": 9222,
      -        "description": "CDP port (default 9222)",
      -        "maximum": 65535,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "retryCount": {
      -        "default": 3,
      -        "description": "Max scroll attempts (image path binary-search). Default 3, cap 4.",
      -        "maximum": 4,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "strategy": {
      -        "default": "auto",
      -        "description": "auto (default): try CDP → UIA → image in order. cdp: Chrome/Edge only. uia: native Windows UIA. image: image + Win32 binary-search.",
      -        "enum": [
      -          "auto",
      -          "cdp",
      -          "uia",
      -          "image"
      -        ],
      -        "type": "string"
      -      },
      -      "tabId": {
      -        "description": "CDP tab ID (Chrome path only). Omit for first page tab.",
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "CSS selector (Chrome/Edge) or partial UIA name (native apps). For CDP path, must be a valid CSS selector (starts with #, ., tag, or [ ). For UIA path, a partial name match against element Name property.",
      -        "type": "string"
      -      },
      -      "verifyWithHash": {
      -        "default": false,
      -        "description": "Verify scroll effectiveness via perceptual hash comparison. Automatically enabled for image path.",
      -        "type": "boolean"
      -      },
      -      "virtualIndex": {
      -        "description": "Target row index in a virtualised list (0-based). Enables direct TanStack/data-index seeking.",
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "virtualTotal": {
      -        "description": "Total row count in a virtualised list. Required when virtualIndex is set.",
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "windowTitle": {
      -        "description": "Partial window title. Required for UIA and image paths. For CDP path, optional.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "target"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "capture"
      -      },
      -      "direction": {
      -        "default": "down",
      -        "description": "Scroll direction: 'down' (vertical, uses Page Down key) or 'right' (horizontal, uses mouse scroll). Default 'down'.",
      -        "enum": [
      -          "down",
      -          "right"
      -        ],
      -        "type": "string"
      -      },
      -      "maxScrolls": {
      -        "default": 10,
      -        "description": "Maximum scroll iterations before stopping (default 10, max 30)",
      -        "maximum": 30,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "maxWidth": {
      -        "default": 1280,
      -        "description": "Max size of the short edge of the final image (default 1280). For 'down': caps the image width; height is unconstrained. For 'right': caps the image height; width is unconstrained.",
      -        "type": "integer"
      -      },
      -      "scrollDelayMs": {
      -        "default": 400,
      -        "description": "Milliseconds to wait after each scroll for rendering to settle (default 400). Increase for slow/animated pages.",
      -        "maximum": 3000,
      -        "minimum": 100,
      -        "type": "integer"
      -      },
      -      "windowTitle": {
      -        "description": "Partial title of the window to capture (case-insensitive match)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "windowTitle"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "read"
      -      },
      -      "language": {
      -        "description": "OCR language code (e.g. 'ja', 'en', 'zh'). Omit to auto-detect from Windows system locale via Intl.DateTimeFormat().resolvedOptions().locale. Default: auto.",
      -        "type": "string"
      -      },
      -      "maxPages": {
      -        "default": 20,
      -        "description": "Maximum number of scroll steps / OCR pages (default 20, max 50).",
      -        "maximum": 50,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "scrollDelayMs": {
      -        "default": 400,
      -        "description": "Milliseconds to wait after each scroll for rendering to settle (default 400).",
      -        "maximum": 3000,
      -        "minimum": 100,
      -        "type": "integer"
      -      },
      -      "scrollKey": {
      -        "default": "PageDown",
      -        "description": "Key sent to scroll one page. PageDown (default): full-page scroll for most apps. Space: web/PDF readers. ArrowDown: line-by-line slow scroll.",
      -        "enum": [
      -          "PageDown",
      -          "Space",
      -          "ArrowDown"
      -        ],
      -        "type": "string"
      -      },
      -      "stopWhenNoChange": {
      -        "default": true,
      -        "description": "Stop automatically when two consecutive pages yield no new lines after deduplication (page-end detection). Default true.",
      -        "type": "boolean"
      -      },
      -      "windowTitle": {
      -        "description": "Partial window title to focus and OCR (case-insensitive match).",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "windowTitle"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "raw"
      +      },
      +      "amount": {
      +        "default": 3,
      +        "description": "Number of scroll steps (default 3)",
      +        "type": "integer"
      +      },
      +      "direction": {
      +        "description": "Scroll direction",
      +        "enum": [
      +          "up",
      +          "down",
      +          "left",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "homing": {
      +        "default": true,
      +        "description": "Apply window-movement homing correction to (x,y) before scrolling. Default true."
      +      },
      +      "hwnd": {
      +        "description": "Direct window handle ID (takes precedence over windowTitle).",
      +        "type": "string"
      +      },
      +      "include": {
      +        "description": "Optional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "speed": {
      +        "description": "Cursor movement speed in px/sec (0=teleport, omit=default)",
      +        "type": "number"
      +      },
      +      "windowTitle": {
      +        "description": "Partial window title. When provided, the server focuses this window first.",
      +        "type": "string"
      +      },
      +      "x": {
      +        "description": "X coordinate to scroll at (moves cursor there first)",
      +        "type": "number"
      +      },
      +      "y": {
      +        "description": "Y coordinate to scroll at",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "direction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "to_element"
      +      },
      +      "block": {
      +        "default": "center",
      +        "description": "Vertical alignment after scroll — start/center/end/nearest (Chrome path only, default: center)",
      +        "enum": [
      +          "start",
      +          "center",
      +          "end",
      +          "nearest"
      +        ],
      +        "type": "string"
      +      },
      +      "include": {
      +        "description": "Optional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "Partial name/label of the element (UIA name match). Use for native app elements. At least one of name or selector must be provided.",
      +        "type": "string"
      +      },
      +      "port": {
      +        "default": 9222,
      +        "description": "CDP port for Chrome path (default 9222)",
      +        "maximum": 65535,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "selector": {
      +        "description": "CSS selector for the element (Chrome/Edge only). At least one of name or selector must be provided.",
      +        "type": "string"
      +      },
      +      "tabId": {
      +        "description": "Tab ID (Chrome path only). Omit for first page tab.",
      +        "type": "string"
      +      },
      +      "windowTitle": {
      +        "description": "Partial window title (required for native path when name is used)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "smart"
      +      },
      +      "direction": {
      +        "default": "into-view",
      +        "description": "Scroll direction. into-view: scroll until target element is visible (default). Other values scroll unconditionally.",
      +        "enum": [
      +          "into-view",
      +          "up",
      +          "down",
      +          "left",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "expandHidden": {
      +        "default": false,
      +        "description": "Temporarily set overflow:hidden ancestors to overflow:auto to unlock scroll. Mutates live CSS.",
      +        "type": "boolean"
      +      },
      +      "hint": {
      +        "description": "Scroll direction hint for binary-search (image path). Seeds lo/hi bounds to reduce attempts.",
      +        "enum": [
      +          "above",
      +          "below",
      +          "left",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "include": {
      +        "description": "Optional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "inline": {
      +        "default": "center",
      +        "description": "Vertical alignment after scroll (CDP path). Default: center.",
      +        "enum": [
      +          "start",
      +          "center",
      +          "end",
      +          "nearest"
      +        ],
      +        "type": "string"
      +      },
      +      "maxDepth": {
      +        "default": 3,
      +        "description": "Max number of ancestor scroll containers to walk. Default 3.",
      +        "maximum": 10,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "port": {
      +        "default": 9222,
      +        "description": "CDP port (default 9222)",
      +        "maximum": 65535,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "retryCount": {
      +        "default": 3,
      +        "description": "Max scroll attempts (image path binary-search). Default 3, cap 4.",
      +        "maximum": 4,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "strategy": {
      +        "default": "auto",
      +        "description": "auto (default): try CDP → UIA → image in order. cdp: Chrome/Edge only. uia: native Windows UIA. image: image + Win32 binary-search.",
      +        "enum": [
      +          "auto",
      +          "cdp",
      +          "uia",
      +          "image"
      +        ],
      +        "type": "string"
      +      },
      +      "tabId": {
      +        "description": "CDP tab ID (Chrome path only). Omit for first page tab.",
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "CSS selector (Chrome/Edge) or partial UIA name (native apps). For CDP path, must be a valid CSS selector (starts with #, ., tag, or [ ). For UIA path, a partial name match against element Name property.",
      +        "type": "string"
      +      },
      +      "verifyWithHash": {
      +        "default": false,
      +        "description": "Verify scroll effectiveness via perceptual hash comparison. Automatically enabled for image path.",
      +        "type": "boolean"
      +      },
      +      "virtualIndex": {
      +        "description": "Target row index in a virtualised list (0-based). Enables direct TanStack/data-index seeking.",
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "virtualTotal": {
      +        "description": "Total row count in a virtualised list. Required when virtualIndex is set.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "windowTitle": {
      +        "description": "Partial window title. Required for UIA and image paths. For CDP path, optional.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "target"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "capture"
      +      },
      +      "direction": {
      +        "default": "down",
      +        "description": "Scroll direction: 'down' (vertical, uses Page Down key) or 'right' (horizontal, uses mouse scroll). Default 'down'.",
      +        "enum": [
      +          "down",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "include": {
      +        "description": "Optional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "maxScrolls": {
      +        "default": 10,
      +        "description": "Maximum scroll iterations before stopping (default 10, max 30)",
      +        "maximum": 30,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "maxWidth": {
      +        "default": 1280,
      +        "description": "Max size of the short edge of the final image (default 1280). For 'down': caps the image width; height is unconstrained. For 'right': caps the image height; width is unconstrained.",
      +        "type": "integer"
      +      },
      +      "scrollDelayMs": {
      +        "default": 400,
      +        "description": "Milliseconds to wait after each scroll for rendering to settle (default 400). Increase for slow/animated pages.",
      +        "maximum": 3000,
      +        "minimum": 100,
      +        "type": "integer"
      +      },
      +      "windowTitle": {
      +        "description": "Partial title of the window to capture (case-insensitive match)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "windowTitle"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "read"
      +      },
      +      "include": {
      +        "description": "Optional response-shape opt-in. `['envelope']` returns the self-documenting envelope (`_version` / `data` / `as_of` / `confidence`). `['raw']` forces raw shape (overrides DESKTOP_TOUCH_ENVELOPE=1 server default). Default behaviour is raw shape (compat with existing clients).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "language": {
      +        "description": "OCR language code (e.g. 'ja', 'en', 'zh'). Omit to auto-detect from Windows system locale via Intl.DateTimeFormat().resolvedOptions().locale. Default: auto.",
      +        "type": "string"
      +      },
      +      "maxPages": {
      +        "default": 20,
      +        "description": "Maximum number of scroll steps / OCR pages (default 20, max 50).",
      +        "maximum": 50,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "scrollDelayMs": {
      +        "default": 400,
      +        "description": "Milliseconds to wait after each scroll for rendering to settle (default 400).",
      +        "maximum": 3000,
      +        "minimum": 100,
      +        "type": "integer"
      +      },
      +      "scrollKey": {
      +        "default": "PageDown",
      +        "description": "Key sent to scroll one page. PageDown (default): full-page scroll for most apps. Space: web/PDF readers. ArrowDown: line-by-line slow scroll.",
      +        "enum": [
      +          "PageDown",
      +          "Space",
      +          "ArrowDown"
      +        ],
      +        "type": "string"
      +      },
      +      "stopWhenNoChange": {
      +        "default": true,
      +        "description": "Stop automatically when two consecutive pages yield no new lines after deduplication (page-end detection). Default true.",
      +        "type": "boolean"
      +      },
      +      "windowTitle": {
      +        "description": "Partial window title to focus and OCR (case-insensitive match).",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "windowTitle"
      +    ],
      +    "type": "object"
      +  }
      +]
  14. Addedv1.1.1
  15. Removedv1.1.0
  16. Addedv1.0.3
  17. Removedv0.15.7
  18. Changed1 schema field changedv0.15.4
    • addedInput schema / properties / hwnd
      Added value: +{
      +  "description": "Direct window handle ID (takes precedence over windowTitle). Obtain from get_windows response (hwnd field). String type to avoid 64-bit precision issues.",
      +  "type": "string"
      +}
  19. Changed11 schema fields changedv0.10.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / _stub
      Removed value: -{
      -  "description": "Stub tool — arguments ignored."
      -}
    • addedInput schema / properties / amount
      Added value: +{
      +  "default": 3,
      +  "description": "Number of scroll steps (default 3)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "description": "Scroll direction",
      +  "enum": [
      +    "up",
      +    "down",
      +    "left",
      +    "right"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / homing
      Added value: +{
      +  "default": true,
      +  "description": "Enable homing correction if the target window moved.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / speed
      Added value: +{
      +  "description": "Cursor movement speed in px/sec. 0 = instant.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / windowTitle
      Added value: +{
      +  "description": "Partial title of the target window.",
      +  "type": "string"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "description": "X coordinate to scroll at (moves cursor there first)",
      +  "type": "number"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "description": "Y coordinate to scroll at",
      +  "type": "number"
      +}
    • addedInput schema / required
      Added value: +[
      +  "direction"
      +]
  20. First observedv0.6.2

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and meets it: it discloses foreground-window requirements per action, specific error codes and what each means, that capture pixels do not match screen coordinates when sizeReduced=true (so it must not feed mouse_click), that smart's CDP path needs browser_open, that to_element's native path needs ScrollItemPattern, and that read relies on imperfect OCR. This is far beyond what any annotation set would convey.

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?

Purpose/Details/Prefer/Caveats/Examples is a clean, front-loaded structure and the examples are genuinely useful for action selection. It is however very dense and occasionally repeats what the schema already documents verbatim (the amount/notch explanation appears in both), and lines like the ADR-018 hints.verifyDelivery channel enumeration are reference-grade detail that adds bulk more than selection value.

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?

For a 32-parameter tool with no output schema and no annotations, the description covers what is missing: it describes response shapes (stitched image with sizeReduced, deduplicated stitched text, stoppedReason values, hints.verifyDelivery) and the per-action preconditions and failure modes. An agent has enough to choose an action, anticipate the return, and interpret errors without further documentation.

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 baseline is 3; the description earns a bump by adding semantics the schema alone does not make obvious, notably that ~10 wheel notches equal one screenful and that amount:3 is roughly a third of a screen, plus the strategy ordering for 'auto' and per-action meaning of direction and windowTitle. It stops short of full per-parameter coverage (e.g. homing, verifyWithHash, maxWidth are left entirely to the schema), so not a 5.

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?

Opens with a specific verb+resource ('Scroll a window or page') and immediately enumerates five named strategies via the action parameter, each with a one-line definition. An agent can tell what this tool does and how its modes differ from screenshot, browser_eval, or focus_window 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?

The 'Prefer:' block gives explicit routing rules: to_element/smart for entity_outside_viewport recovery, capture for reading long pages as images, read for text extraction from native documents, raw for simple scrolls, and it explicitly redirects to focus_window + desktop_discover when the failure was origin_window_not_visible rather than a scroll problem. It even states when scrolling will NOT help, which is the strongest form of exclusion guidance.

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