Skip to main content
Glama

browser_scroll

Scroll web pages or containers using CSS selectors, directional commands, or absolute positions to navigate content and access hidden elements.

Instructions

[Disabled] Scroll the page or a scrollable container. Three modes: (1) provide a CSS selector to scroll that element into view (centered), (2) provide a direction (up/down/left/right) with optional distance in pixels to scroll relatively (defaults to one viewport height/width), (3) provide a position {x, y} to scroll to absolutely. If none are provided, returns the current scroll position without scrolling. Use the optional container parameter to scroll within a specific scrollable element instead of the page. Returns scroll position, total scroll size, and viewport size so you know how much more content exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesTab ID of the page to interact with
selectorNoCSS selector of element to scroll into view (uses scrollIntoView with block: "center")
directionNoDirection to scroll relatively. Defaults to one viewport height (up/down) or width (left/right).
distanceNoDistance in pixels for relative scrolling. Defaults to viewport height (up/down) or width (left/right).
positionNoAbsolute scroll position to scroll to
containerNoCSS selector of a scrollable container to scroll within instead of the page

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opentabs-dev/opentabs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server